xml - Classic ASP and xsl xsl:for-each setting a from and to value -


currently have following piece of code list last 12 articles:

    <xsl:for-each select="rss/channel/item[position() &lt;= 12]"> 

what similar pagination effect. there way have between as:

    <xsl:for-each select="rss/channel/item[position() &gt;= 12 & &lt;= 24]"> 

i pass in values in asp page:

  mm_xsl.addparameter "from",   mm_xsl.addparameter "to" 

then have in xsl page:

    <xsl:for-each select="rss/channel/item[position() &gt;= $from & &lt;= $to]"> 

is possible?

yes, possible. have correct predicate need put correct syntax in it. wold update below:

<xsl:for-each select="rss/channel/item[position() &gt;= $from , position() &lt;= $to]"> 

that give of items position between 2 variables.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -