Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSL sorting problem >Thread Next - Re: XSL sorting problem Re: XSL sorting problemTo: 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
