Answers
Dec 18, 2006 - 10:50 PM
I found this way, that should work supposedly:
But it only does the first step of the loop.
But it only does the first step of the loop.
Dec 18, 2006 - 11:30 PM
It seems this is not the "right" way to use XSLT after all:
"incrementing a counter
is a procedural programming solution, while XSLT is a functional language.
Sometimes you do have to resort to using recursion or an extension, but often
there is a way to achieve the results you want without resorting to using a
counter at all, let alone incrementing it. The most common problems are solved
using careful selection of nodes using the select attribute on an xsl:for-each
or xsl:apply-templates, and utilizing position() when processing those nodes."
Quoted from: http://www.xslt.com/html/xsl-list/200...
"incrementing a counter
is a procedural programming solution, while XSLT is a functional language.
Sometimes you do have to resort to using recursion or an extension, but often
there is a way to achieve the results you want without resorting to using a
counter at all, let alone incrementing it. The most common problems are solved
using careful selection of nodes using the select attribute on an xsl:for-each
or xsl:apply-templates, and utilizing position() when processing those nodes."
Quoted from: http://www.xslt.com/html/xsl-list/200...
Dec 18, 2006 - 11:35 PM
This is the best way to do it (recursively):
.Hello world! 1 10
Dec 19, 2006 - 06:23 AM
XSL is based on a "transformation" model
The best way to follow the model is to make appear an element 5 times on the source xml
The best way to follow the model is to make appear an element 5 times on the source xml
Feb 10, 2007 - 02:04 AM
gotta close this one...
Xarcus, good comment there :)
Xarcus, good comment there :)
Add New Comment