xsl-list
[Top] [All Lists]

Re: creating attributes from preceding element..

2005-11-21 00:01:17
Hello Ragulf,

Thanks a lot :)

Regards,
Raj

--- Ragulf Pickaxe <ragulf(_dot_)pickaxe(_at_)gmail(_dot_)com> wrote:

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





        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.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>
--~--