|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sort and paging problem
Hi,
> <xsl:for-each select="DISPONIBILITY/LHOTEL/HOTEL[position()
> >= $start and
> position() <= $end]">
> <xsl:sort select="number(@price)"/>
> </xsl:for-each>
You have to first select, sort, and only then filter by position, i.e.
<xsl:for-each select="DISPONIBILITY/LHOTEL/HOTEL">
<xsl:sort select="number(@price)"/>
<xsl:if test="position() >= $start and position() <= $end">
...
Cheers,
Jarno - This Morn'Omina: One Eyed Man
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








