xsl-list
[Top] [All Lists]

Re: [xsl] position() function in loop provides only 1

2012-04-11 07:02:12
I use the positon() funciton to build a counter.
I use it in a for-each loop under another for-each. The result is but ever 1.

Some tips:

- use apply-templates instead of for-each

- if you want to number something, use xsl:number instead of position()




-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--