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
| Current Thread |
- Sort and paging problem
- Fran - Fri, 14 Mar 2003 03:24:35 -0500 (EST)
- <Possible follow-ups>
- Jarno . Elovirta - Fri, 14 Mar 2003 04:15:19 -0500 (EST) <=
|
|