Re: Is it possible to know position of ancestor?
But here is also the problem:
Let say we have another XML:
<b/> - we are here
In your example select="count(../preceding-sibing::* + 1)" we get 3 because it will count "some_tag" too. But we need to count only "line" elements.
How we can solve this problem?
David Carlisle writes:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format