W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2003

RE: XSLT function "path()" required

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Fri, 26 Sep 2003 16:01:13 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD164@daemsg02.software-ag.de>
To: Oliver Becker <obecker@informatik.hu-berlin.de>, public-qt-comments@w3.org, jean.huberson@free.fr
Cc: christian.huberson@imag.fr
> 
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:27 GMT