xsl-list
[Top] [All Lists]

Re: Re: Is it possible to know position of ancestor?

2002-10-17 13:19:23
evgeniy(_dot_)strokin(_at_)rocketrainer(_dot_)com wrote:
But if you don't know name of element "line"? It should be the same name only this you know.

Perhaps
 select="count(../preceding-sibing::*[name()=name(current())] + 1)"


J.Pietschmann


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list