There are two techniques in use.
(a) provided there are sufficiently many nodes in your document, you can do
[code]
<xsl:for-each select="//node()[position() < $end - $start]">
<xsl:variable name="this" select="position() + $start - 1"/>
...
</xsl:for-each>
(b) use recursion. Call a template passing $start as a parameter; make it call itself passing $start + 1; terminate the recursion when $start reaches $end.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|