xsl-list
[Top] [All Lists]

RE: Sort and paging problem

2003-03-14 02:18:38
Hi,

<xsl:for-each select="DISPONIBILITY/LHOTEL/HOTEL[position() 
= $start and
position() &lt;= $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() &lt;= $end">
    ...

Cheers,

Jarno - This Morn'Omina: One Eyed Man

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>