Transform node pieces and paste the rest

Hello

It's hard to explain what I need. Here is an example:

XML:
<DOCUMENT>
  <PAGE>
    <PAGEHEADER type="1">
    </PAGEHEADER>
    <block>Hello</block>
    <block>World</block>
    <line>This is a test</line>
    <GREETING type="2">
    </GREETING>
  </PAGE>
</DOCUMENT>
Output:
<DOCUMENT>
  <PAGE>
    <PAGEHEADER type="1">
      ...
    </PAGEHEADER>
    <block>Hello</block>
    <block>World</block>
    <line>This is a test</line>
    <GREETING type="2">
       ...
    </GREETING>
  </PAGE>
</DOCUMENT>
There are several standard subnodes for PAGE: PAGEHEADER, WISHES,...
This isn't a problem to transform these nodes, but I want all the non-standard nodes (block, line,...) to the title of the PAGE without changes in the output xml file.

XSL:
...
<xsl:output method="xml"/>

<xsl:stylesheet>

  <xsl:template match="/">
    <DOCUMENT>
      <xsl:apply-templates/>
    </DOCUMENT>
  </xsl:template>

  <xsl:template match="PAGE">
    <PAGE>
      <xsl:apply-templates/>
    </PAGE>
  </xsl:template>

  <xsl:template match="PAGEHEADER">
  ...
  </xsl:template>

  <xsl:template match="GREETING">
  ..
  </xsl:template>

  <xsl:template match="?? non standard nodes ??">
  ..
  </xsl:template>

</xsl:stylesheet>
Is this possible?

Thanks for the reply
Attackwave

Published by: ORDIX Attackwave January 2, 2012 12:47

Is this possible?

Of course, it's a classic ;)

Use a style sheet based on the transformation of identity and add specific templates to process the nodes you want to:


  

  
    
      
    
  

  
    
      
      
    
  

  
    
      
      
    
  


For example:


  
  
    
      
    
  
  
    
      
      
    
  
  
    
      
      
    
  

will produce:



  
      
         
      
      Hello
      World
      This is a test
      
         
      
  

Tags: Oracle Development

Similar Questions

  • How to Type take on the picture below (and hide the rest)?

    Hi, I know how to do this in Photoshop (see photo).

    I put it in place in Indesign, but I'm stuck.

    In my attached image, Photoshop is on top, he sees through the type and cover the rest of the image.

    At this point, it would be useful to know what to look for a tutorial... unless someone is generous and can link or explain it to me.

    1. Make sure that the text is in its own framework.
    2. Select the text block with the selection tool.
    3. Type > vectorize.
    4. Picture of the place in the text of contours, or copy the image then paste into selected vectorization of text.

  • Is it possible to get photos on an old iPod worm iOS 5.1.1 the cloud, photos or on my desk?  My Mac and all the rest is the current version.

    Is it possible to get photos on an old iPod worm iOS 5.1.1 the cloud, photos or on my desk?  My Mac and all the rest is the current version.

    iCloud library requires iOS 8.3 or later. However, you can use the USB cable (cable of load with the detached charger) and connect it to your Mac. See: import photos and videos from your iPhone, iPad or iPod touch - Apple Support

  • 4.3 pages - copy and paste the links/Bookmarks.

    It's a simple question (hahahahaha) - is it possible to copy/paste a bookmark in 4.3 Pages?

    I have a 400 page document where each page has anywhere between 5 to 20 interns to other pages of the document.

    What I would do, because the pages seems to keep losing these links from time to time, is able to use the copy/paste in batch mode and paste the link as a "style." But I think there is no way to do it.

    If there is, please tell. If there is another way to do it outside of pages... Please tell!

    Thank you Ahead of Time.

    Not sure I get what you're asking because if you copy text that has a bookmark link and paste it elsewhere it retains the link.

    You can make a Style because it contains is not the formatting of data (the link).

    If you want some boilerplate text as a link pre-made, copy them and paste one already made, then change the word/s in the text and the actual link in the Hyoerlink Inspector. A little less work.

    Peter

  • 3 documents are the same how to keep one and delete the rest

    Title: many
    I save a lot of letters, files etc in MY DOCUMENTS for the engraving or printing at a later date, now I find there are THREE my documents on the desktop and do not all have the same information stored in

    I moved all necessary letters etc. in one my question is that how can I remove all but one of MY DOCUMENTS?

    Thanks for any help

    Don

    There should be a "My Documents" folder for each user account on your computer.  For example, if you have configured your computer with two user accounts, Don and Phyllis, there should be C:\Documents and Settings\Phyllis\My Documents Settings\Don\My Documents and C:\Documents.

    Please answer the following questions:

    1. When you say you have three "My Documents" on your desktop, they are records or they are shortcuts (with the arrow curved in the lower left corner of the icon)?

    2. for each of the three folders "My Documents" on your desktop, right click and select Properties.

    • If the icon is a shortcut, select the tab "shortcut".  Copy the information that is in the 'Target' box and paste it into your reply here.
    • If the icon is not a shortcut, select the tab "General".  Copy and paste the information after the word "Location" in your response here.

    Once it is clear that these elements of "My Documents" on your desktop actually represent, I can suggest ways to consolidate things.

  • Where is the copy or cut and paste the toolbar?

    Where is the copy or cut and paste the toolbar?  How can I register my toolbar with the bold, italic, buttons etc.?

    Hello

    1 are. what application you referring?

    If you use word, then check out these links and check if it helps:

    http://Office.Microsoft.com/en-us/Word-help/create-a-custom-toolbar-HP003085155.aspx

    http://Office.Microsoft.com/en-us/Word-help/customize-your-toolbars-and-menus-RZ001003635.aspx

    It will be useful.

  • Cannot copy and paste the content of an email from browser AOL9.5

    Windows 7 can not / not to highlight, or cut and paste using aol9.5 which is compatible with Windows 7. HP will not help me. Hope the forum will, like MS wants $49 to talk to me. New computer, about to come back and continue to use the old XP. Thank you.
    In an email, I can 'select all' and copy and paste, but if I want a part of this opportunity and send someone else, only 'PART' of this same mail via via cut and paste, it doesn't allow me to do.  I have included for the forum, my chat session with HP that has not helped me... He talked about IE and I'm not on IE, I use aol9.5. So thank you and hope someone can help me.  Here's the question/conversation.  Thanks for your time in advance.   Gail

     
    If I send you an email and then I want someone to send the same email, but with less content that what I sent you, cut and paste highlights the whole email and not just the portion I want to send to the other party. I have to use the delete button to make it work properly.  Below is the response from HP.

     
    [Monday, September 13, 2010 16:23]-Rajeev K says:
    I understand your concerns. In this case, I'm afraid to say because this content is available to the web browser in line, we can not able to perform the cut dough. If we need to send content limited from the particular email, in this case, you can copy paste the documents to any word in the document then right a new email and send the details according to your requirement.

     
    [Monday, September 13, 2010 16:23]-Gail Smaldone says:
    Hope you understand. Google says Windows 7 allow to cut and paste, and highlight the part of the sentence, it does not work.

     
    [Monday, September 13, 2010 16:25]-Gail Smaldone says:
    What you say makes no sense to me. I do a lot of extra work.

     
    [Monday, September 13, 2010 16:26]-Rajeev K says:
    Gail, the issue is not with Windows 7.

     
    [Monday, September 13, 2010 16:26]-Rajeev K says:
    It is because of Web browser that we use.

     
    [Monday, September 13, 2010 16:27]-Gail Smaldone says:
    It seems to be Windows 7, Rajeev. I can't yet highlight the cat above. The highlight will not stay up there for cut me and paste.

     
    [Monday, September 13, 2010 16:27]-Gail Smaldone says:
    I use aol 9.5 and sometimes internet explore. Currently, I'm on AOL9.5 which they say is compatible with Windows 7.

     
    [Monday, September 13, 2010 16:27]-Rajeev K says:
    Are you facing the same question with all formats?

     
    [Monday, September 13, 2010 16:28]-Gail Smaldone says:
    I have not tried on IE.

     
    [Monday, September 13, 2010 16:28]-Gail Smaldone says:

    I use aol 99% of the time

     
    [Monday, September 13, 2010 16:28]-Rajeev K says:
    Alright.

     
    [Monday, September 13, 2010 16:30]-Gail Smaldone says:
    What can we do to fix this, if it's not the fault of computers?

     
    [Monday, September 13, 2010 16:30]-Rajeev K says:
    Gail, from now on, we have no other option to change this.

     
    [Monday, September 13, 2010 16:31]-Gail Smaldone says:
    I can't use the computer Rajeev in this way, then.

     
    [Monday, September 13, 2010 16:31]-Gail Smaldone says:
    : () O

     
    [Monday, September 13, 2010 16:31]-Rajeev K says:
    I'm sorry for the inconvenience caused to you.

     
    [Monday, September 13, 2010 16:32]-Gail Smaldone says:
    You are able to talk to who it is created the Windows 7 operating system and see what can be done to make it compatible with aol9.5?

     

    Hi Gail,

    At this point, I suggest to launch Internet Explorer and check to see if you are able to copy and paste the content of the emails. If you are able to accomplish the task uisng Internet Explorer, it could be possible that some features of AOL9.5 do not work as expected, and you would like to get in touch with AOL, to solve the problem.

    Please visit the below mentioned link for help on AOL products:

    http://help.AOL.com/help/microsites/microsite.do

    Kind regards

    Gaurav Prakash - Microsoft Support


    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to copy and paste the touchpad on a Toshiba portable computer Satellite C655 S5505 windows 7?

    OT:touchpad.

    Hello, can you please suggest how to copy and paste the touchpad on a Toshiba portable computer Satellite C655 S5505 windows 7.

    It worked a few days ago... I don't know what I did so that it does not work right. I like to copy and paste when right or click with the left button of the touchpad... They have a key on the Panel of key with copy and paste and cancel and cut options next to the bar area to the right of the ALT key with lines and an arrow on the key... Always like the old mode right click and copy and paste from the touchpad... Thank you

    Hello

    Check with the manufacturer of system support, documentation in line, or forums as there probably
    are shortcut keys that enable and disable the touchpad functions.

    Toshiba has also map of keys which allow easy adjustment of the TouchPad. See support for Toshiba
    and Forums. The key shortcut for the TouchPad, if they are responsible in the Fn + F9 or see the key card
    So usually loaded at the top of the screen.

    There is also usually a TouchPad control utility that loads in the Notification area next to the clock
    at the bottom right.

    Toshiba - Forums
    http://laptopforums.Toshiba.com/

    Toshiba - Contacts
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/navShell.jsp?CF=su_contact

    Toshiba - drivers - access your model
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp?NAV=download

    Toshiba - Support
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad
    entries) and some have a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    This utility also allows to control the TouchPad:

    TouchFreeze
    http://code.Google.com/p/TouchFreeze/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Security How can I remove the copy and paste the files I used?

    Security How can I remove the copy and paste the files I used?

    I can't get rid of all the e-mail addresses I have copied and pasted.  No matter what I will always appear if I hit paste again.  This is a shared computer and I would rather not have my copy and paste the files stored on the computer, after that I quit.

    Thank you

    Hi Ron,

    You can copy or move information (for example, text and pictures) between files and programs using temporary storage called the Clipboard. The Clipboard is not visible, so even if you use it to copy and paste information, you never actually see the Clipboard when you do this.

    The Clipboard contains a block of information at a time. Whenever you copy information to the Clipboard, the old contents of the Clipboard is replaced by the new information.

    When you shut down the computer everything is stuck in the memory of the Clipboard is cleared.

    Please click the below mentioned link to get an overview of the clip board memory.

    http://Windows.Microsoft.com/en-in/Windows7/copy-information-between-files

    Answer please if you have any questions.

  • Problem with copying and pasting the bottom like a layer

    I use Photoshop elements 14.  I used the Polygonal Lasso to select part of an image and to turn off the Cup in a new layer.  I opened the image I want to use as the background to place the cutting on.  I select all and then copy and paste it into the file with the cutting.  What appears as a layer of this background in cutting a file image is a tiny part of the original image.  For example, the original image is a photo of the entire landscape and all that glue in the bottom layer is a small part of the sky.  I changed the resolution of the original background photo and the file with the cutting at the same resolution and that did not help.  How can I get the whole background photo to appear as a layer of the file cut on the Photo?

    If I understand your problem, using this example, I selected the background flower later and placed on a new layer, layer 1. Then I selected the field of the whole flower to another image and and copy/pasted on layer 2. The problem is not so much the resolution of 2 photos but rather their pixel dimensions. In this example, the dimensions of the field of flowers were much smaller than the image of the close-up.

    I resized and then 2 layer to fill the drawing area:

    Perhaps it would be easier to pick the flower of the image enlarged and paste the selection in the field of flower photo. Then, you can resize and reposition the flower according to the needs:

    If this isn't your scenario, please specify.

  • Copy and paste the code which gives different results

    I use PS CS5 and need to copy and paste the code from one page to another. The reason is that the only difference is a change in the images and titles.

    When I view the page copied in a browser the table continues beyond the wrapper div and none of the images are visible.

    Here is the copied code:

    <! DOCTYPE HTML > < html lang = "en" >

    < html >

    Head of <>< name meta = "robots" content = "INDEX, FOLLOW" / >

    < name meta = "robots" content = "noimageindex" / >

    < name meta = "description" content = "Ace with checkered flag logo" / >

    < name meta = "keywords" content = "Top Trumps, Ace, flag at checkerboard, Classic Cars, drag racing, heavy trucks, 500 miles of Indianapolis, International bus, luxury cars, luxury cars Made in Germany, Yachts of luxury, the NASA Super Jets, cars, Rolls-Royce, Street Bikes, street cruisers, Super-Bikes, Super Sonics, Super Trains in the world." / >

    < title > < /title > checkered flag

    < link href = "css/table.css" rel = "stylesheet" type = "text/css" media = "screen" > "

    < / head >

    < div id = 'wrapper' >

    < body >

    < div id = "bread crumbs" >

    < a title = "Return to Homepage" href = "index.html" > home < /a > & bull; < a title = "Go back to index of England" href = "england.html" > English Top Trumps < /a > & bull; "< a title ="Back to Ace Index"href ="... /... ' / index.html - ace "> Ace Index < /a >

    < / div >

    < div id = "banner logo" >

    "< img src ="... /... / images/title.jpg ">"

    < / div >

    < div id = "page title" > < flag checkerboard of h1 > < / h1 > < / div >

    < div id = "table" align = "center" >

    < table >

    < thead >

    < b >

    < th = "column" range > Classic Cars < /th >

    < th = "column" scope > < /th > Dragster

    < th = "column" scope > < /th > trucks

    < th = "column" scope > Indianapolis 500 < /th >

    < th = "column" scope > International bus < /th >

    < /tr >

    < / thead >

    < tbody >

    < b >

    < td > < img title = "cars classic Ace assets with the checkered flag" src = "images/futbol_yildizlari.gif" > < table >

    < td > < img title = "Dragster Ace assets with the checkered flag" src = "images/HP-ve - zumruduanka.gif" > < table >

    < td > < img title = "Trucks heavy Ace assets with the checkered flag" src = "images/hp_ve_ateskadehi.gif" > < table >

    < td > < img title = "Indianaplis 500 Ace assets with the checkered flag" src = "images/karayip_korsanlari.gif" > < table >

    "< td > < img title ="Bus International Ace assets with the checkered flag"src ="... /... / images/international_buses_ace.gif ' > < table >.

    < /tr >

    < b >

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < /tr >

    < / tbody >

    < thead >

    < b >

    < th = "column" scope > luxury car < /th >

    < th = "column" scope > luxury cars Made in Germany < /th >

    < th = "column" scope > < /th > Luxury Yachts

    < th = "column" scope > the NASA Super Jets < /th >

    < th = "column" scope > race cars < /th >

    < /tr >

    < / thead >

    < tbody >

    < b >

    "< td > < img title ="Luxury cars Ace assets with the checkered flag"src ="... /... /images/luxury-cars-ACE.gif' > < table >

    "< td > < img title ="Cars luxury Made in Germany Ace assets with the checkered flag"src ="... /... / images/Lux_Cars_Made.gif ' > < table >.

    "< td > < img title ="Luxury Yachts"src ="... /... / images/Luxury_Yachts.gif ' > < table >.

    "< td > < img title ="NASA Super Jets Ace with checkered flag"src ="... /... /images/NASA_Super-Jets_Ace.gif' > < table >

    "< td > < img title = 'Race Cars Ace with checkered flag' src = '... /... / images/Race_Cars.gif ' > < table >.

    < /tr >

    < b >

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < td > click on the < table > image

    < /tr >

    < / tbody >

    < /table >

    < / div >

    < div id = 'foot' >

    & copy; 2005-2016 Ultimate Top Trumps. All rights reserved < / div >

    < / body >

    < / html >

    Thanks in advance.

    At first glance, I see that you have a wrapper

    before the openingtag. You can't do that.

    Run the validator at http://validator.w3.org/nu for a list of your html of your page errors. Clean and your page should work fine.

  • Copy and paste the IPTC metadata entirely

    Hello guys.

    My question is on copy and paste the full IPTC metadata from file to another file.

    How can I do?

    Thanks in advance,

    Artem

    OK guys here is the solution (batch copy all metadata with the same name as this EPS EPS to JPG):

    (1) install Exiftool

    (2) use this code:

    ExifTool - tagsfromfile %d%f.eps-all: all-overwrite_original *.jpg

  • Copy and paste the highlight, shadow and exposure?

    Can you copy and paste the parameters for each clip so that there is no dramatic change in the exposure of one small clip to another?

    Thank you!

    Jon

    Hi Jon,

    Great idea, but unfortunately you can't currently do that in video. We have this on our radar!

    Apply a 'Look' to the help project give a mood meets all the clips in the project.

    Keep coming suggestions!

    Best,

    Peter Garaway

  • In one of the inDesign tutorials instructor pulls up what looks like an application bar that contains among other things a text editor to cut and paste the copy into the inDesign project.  That is a feature of inDesign, and how is it accessible?

    In one of the inDesign tutorials instructor pulls up what looks like an application bar that contains among other things a text editor to cut and paste the copy into the inDesign project.  That is a feature of inDesign, and how is it accessible?

    The instructor used the App Switcher on Mac to switch to a text editor and copy this text editor text. InDesign is not the active application.

  • How to copy and paste the image parameters to image with ACR 9.1.1

    How to copy and paste the image parameters to image with ACR 9.1.1

    Hi nicholast15140269

    • You can save the current settings of the image or can save them outside in the form of XMP file. Then use as a preset.

    Concerning

    ~ Assani

Maybe you are looking for