Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Best way to display a large XML [Thread Next] Re: Best way to display a large XMLTo: NULL Date: 1/15/2009 4:43:00 PM rudigarude@g... wrote: > Hi I was just wondering if there is a way to sort this, e.g <xsl:sort > select="bar"/> ? > > I have tried playing this into the xsl code and it doesnt work. You could sort first and then use the existing algorithm on the sorted nodes. However that does only work with XSLT 1.0 if the processor supports an extension function to convert a result tree fragment into a node-set. Firefox 3.0, Opera 9, IE 6 and later can do that, earlier version not I think. Does that help for your application? Here is an adapted example: http://home.arcor.de/martin.honnen/xslt/test2009011502.xml http://home.arcor.de/martin.honnen/xslt/test2009011502Xsl.xml the stylesheet checks whether a node-set extension function is supported and if so sorts on the 'bar' element number value, then applies the other templates after using the extension function. I tested that the sorting works on Windows with Firefox 3.0, IE 7, Opera 9.6 and Safari 3.2. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
