Subject: [xsl] rearranging nodes using XSLT From: a kusa <akusa8@xxxxxxxxx> Date: Wed, 17 Feb 2010 10:32:05 -0600 |
Hi How can I rearrange nodes in xslt? My source XML looks something like this: I am trying to rearrance tbd1, tbd2, tbd3 in that order <root> <list1> <item1> <para>sample</para> </item1> <tbd2><para>test1</tbd2> <tbd1><para>test1</tbd1> <list2> <item1> <para>sample</para> </item1> <tbd3><para>test1</tbd3> <tbd1><para>test1</tbd1> <item1> <para>sample</para> </item1> </list2> </list1> </root> My desired output: <root> <list1> <item1> <para>sample</para> </item1> <tbd1><para>test1</tbd1> <tbd2><para>test1</tbd2> <list2> <item1> <para>sample</para> </item1> <tbd1><para>test1</tbd1> <tbd3><para>test1</tbd3> <item1> <para>sample</para> </item1> </list2> </list1> </root> Thanks in advance for your help.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] summing set of records, anil an.kumar | Thread | Re: [xsl] rearranging nodes using X, Martin Honnen |
Re: [xsl] Entities in XSL (again), Terry Badger | Date | Re: [xsl] Entities in XSL (again), G. Ken Holman |
Month |