Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Best way to display a large XML

From: Martin Honnen <mahotrash@-----.-->
To: 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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent