Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Newbie: Sort Xml to Xml Newbie: Sort Xml to XmlTo: NULL Date: 5/17/2009 4:00:00 AM Hi I'm just starting out with XSL so please bear with me. I have an XML file in the following format: <PileCoords> <Pile> <PileNo>22</PileNo> <Eastings>57.7981568796959</Eastings> <Northings>166.059281023945</Northings> </Pile> <Pile> <PileNo>21</PileNo> <Eastings>57.7981568796959</Eastings> <Northings>161.461817940551</Northings> </Pile> <Pile> <PileNo>194</PileNo> <Eastings>68.6908869290537</Eastings> <Northings>167.952353915529</Northings> </Pile> <Pile> <PileNo>4</PileNo> <Eastings>83.9813040551062</Eastings> <Northings>167.952353915529</Northings> </Pile> </PileCoords> I would like to sort it by the PileNo element & keep it in XML format. I've seen many examples where it's transformed to another format but very few to keep it as XML. In this example: http://www.zvon.org/xxl/XSL-Ref/Tutorials/Sorting/so5.html The element is explicitly defined in the template. Is this essential? It would work in this case where I know all the elements names (eg PileNo, Eastings Northings etc) but what if they'd varied in number & names? Is there a way to say 'copy all the elements under Pile regardless of what they're called'? I hope I've used clear terminology. Any help to find a solution would be greatly appreciated. Thanks Dave F. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
