This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

WG: How to reorder an XML tree?


Hi,

I would like to mostly copy an XML file unmodified. BUT some single sub-tree
should be moved to a different location - regardless of it's original
position.
Example (each of these elements can be quite complex):

<o id="a">
  <o id="b"/>
</o>
<o id="c"/>
<o id="d"/>

should result in

<o id="a"/>
<o id="c"/>
<o id="d">
  <o id="b"/>
</o>

The same XSLT should also process the following input to the output shown
above:

<o id="a"/>
<o id="c">
  <o id="b"/>
</o>
<o id="d"/>

Should be simple - I hope - I'm just a beginner.

Thank you for your help!


connection reset by
  Peer

-- 
Dr. Peer Griebel                     Tel: +49(0) 731 / 9 74 95-0
Dipl. Inform.                       Fax: +49(0) 731 / 9 74 95-20
Entire Software AG                 mailto:Peer.Griebel@entire.de
Pfarrer-Weiß-Weg 10 - 12
D-89077 Ulm                                 http://www.entire.de

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]