> > 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 KayReceived on Friday, 26 September 2003 10:01:27 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:01 GMT