xsl-list
[Top] [All Lists]

Re: creating attributes from preceding element..

2005-11-20 23:53:53
Hi Raj,

[position()] equals to [position()=position()] - like [1] equals to
[position()=1]

Try instead - right after your for-each starts:
<xsl:variable name="current-pos" select="position()"/>

And then use:
[position()=$current-pos]

Regards,
Ragulf Pickaxe :-)

--~------------------------------------------------------------------
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>
--~--