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() <= 12]"> what similar pagination effect. there way have between as:
<xsl:for-each select="rss/channel/item[position() >= 12 & <= 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() >= $from & <= $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() >= $from , position() <= $to]"> that give of items position between 2 variables.
Comments
Post a Comment