RE: Sort and paging problem2003-03-14 02:18:38Hi, <xsl:for-each select="DISPONIBILITY/LHOTEL/HOTEL[position()= $start andposition() <= $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
|
|