Subject:Newbie Sorting Question Author:Jerry Janofsky Date:08 Aug 2006 01:38 PM
Please correct me if I am wrong...
I am writing an XSLT stylesheet to transform data from an XML document. I just realized that I need to make sure my XSLT creates the same output irrelevant of the order of sibbling elements in in XML doc.
For instance, what if I have the following address node:
<address>
<state>MA</state>
<zip>01757</zip>
<street>258 Main Street, Suite 212</street>
<city>Milford</city>
</address>
If my template is like the follwing then it comes out wrong. Does this mean I need to make sure the address element has its sub elements in the correct order or do I have to fix my template?