XML_Neophyte
02-09-2005, 04:32 AM
Hi
I am new to XSL/XML and I just want to find out if it is possible to copy a node (and all child nodes and leaves) while at the same time sorting the grandchildren nodes from a specific offspring node i.e. suppose the following is the XML structure
...
<parentnode>
...
<childnode1>
</childnode1>
<childnode2>
<grandkidnode2>
</grandkidnode2>
<grandkidnode3>
</grandkidnode3>
<grandkidnode1>
</grandkidnode1>
</childnode2>
<childnode3>
</childnode3>
...
</parentnode>
...
The question then is, while I am copying the 'parentnode' (using XSLT) to an output file (XML) , can I copy and sort grandkidnodes in the correct order without breaking the order in which the 'childnodes' appear AND allow for possibility that at a future date other childrennodes can be addded to the original XML which would also need to be copied using the same XSLT file.
Thank you for your help.
-XML_Neophyte
I am new to XSL/XML and I just want to find out if it is possible to copy a node (and all child nodes and leaves) while at the same time sorting the grandchildren nodes from a specific offspring node i.e. suppose the following is the XML structure
...
<parentnode>
...
<childnode1>
</childnode1>
<childnode2>
<grandkidnode2>
</grandkidnode2>
<grandkidnode3>
</grandkidnode3>
<grandkidnode1>
</grandkidnode1>
</childnode2>
<childnode3>
</childnode3>
...
</parentnode>
...
The question then is, while I am copying the 'parentnode' (using XSLT) to an output file (XML) , can I copy and sort grandkidnodes in the correct order without breaking the order in which the 'childnodes' appear AND allow for possibility that at a future date other childrennodes can be addded to the original XML which would also need to be copied using the same XSLT file.
Thank you for your help.
-XML_Neophyte