xsl-list
[Top] [All Lists]

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

2002-10-17 15:37:45


But if you don't know name of element "line"?
you know, it helps if you don't change the question every time you get
an answer....

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

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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