Subject:stylus 2.0 problem with template parameter Author:Charlie Cox Date:29 Mar 2000 02:18 PM
I am trying to execute the following xsl and Stylus 2.0 is not recognizing one of my parameters in the countValue template on the first pass of this recursive template. The results of this xsl are also included below. As you can see, the index parameter starts at '2' and after adding '1' to it, it becomes '1'. All future iterations provide the value correctly. '0' is the only starting value without this problem.
Any suggestions?
thanks,
Charlie
2 4
index=
add 1 to index=
newindex=
---------------------
--------------------------------------
the xml:
--------------------------------------
10
--------------------------------------
the results:
--------------------------------------
index=2
add 1 to index=1
newindex=1
---------------------
index=1
add 1 to index=2
newindex=2
---------------------
index=2
add 1 to index=3
newindex=3
---------------------
index=3
add 1 to index=4
newindex=4
---------------------
index=4
add 1 to index=5
newindex=5
---------------------