xsl-list
[Top] [All Lists]

RE: XPath question

2003-02-03 16:41:46
I have struggled in vain today to 
come up with an XPath expression which would tell me how many 
elements are on the preceding-sibling axis of the parent of a 
given node. Can anyone straighten me out on this?


count(../preceding-sibling::node())

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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