Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL sorting problem

From: David Carlisle <davidc@---.--.-->
To: NULL
Date: 7/5/2005 10:00:00 AM
ree32@h... writes:

> I am also having problems with getting nodes sorted into a variable.
> 
> I tried this
>   <xsl:for-each select="//Photolist">
>    <xsl:sort select="Taken"/>
>    <xsl:variable name="sorted" select="//Photo" />
> </xsl:for-each>
> 
> But it doesn't sort it.

In the above the variable would go out of scope after the for-each so it
could not be used, but in general Variables hold node sets, and sets 9as
opposed to lists or sequences) are always unordered. You can not hold an
ordering in XSLt1 you can only affect the order in which the processing
occirs using xsl:sort.

David


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