RE: XSLT function "path()" required

> 
> Perhaps you want
> 
> string-join(for $n in ancestor-or-self::* return ('/', name($n), '[', 
> string(count($n/preceding-sibling::*[name()=name($n)])+1), ']'), '')
> 
> (this is an extension of the [fixed] string-join example in the 
> Functions and Operators specification)
> 

We didn't put that one in because the preceding-sibling axis wasn't
available in XQuery. But we're getting there slowly, it is now an optional
feature.

Michael Kay

Received on Friday, 26 September 2003 10:01:27 UTC