Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Page and Sorting a XML data [Thread Next] Re: Page and Sorting a XML dataTo: NULL Date: 12/13/2004 1:04:00 PM Keith Chadwick wrote:
> Assuming the xml I original retreived is already sorted by firstname does
> this not mean that the above is going to select items 301 to 400 based on
> the current xml order THEN sort those results by lastname or am I thinking
> far to linear?
No, there is no any implied sorting. It will be sorted by lastname and
that's it. If you need document order and then by lastname, use
<xsl:for-each select="/ROOT/item[position() > 300 and position() <
401]">
<xsl:sort select="position()" data-type="number" order="descending">
<xsl:sort select="@lastname" data-type="text" order="descending">
.. do my thing
</xsl:sort>
</xsl:for-each>
--
Oleg Tkachenko [XML MVP]
http://blog.tkachenko.com
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
