Re: position() of the parent

Subject: Re: position() of the parent
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 20 Jan 2000 12:03:16 GMT
> DSSSL permits an absolute node numbering relative to the
> document root.

> Is that achievable in XPATH?

well since an earlier theread agreed xsl was turing complete, you could
implement a dsssl compiler in xsl, and run that, alternatively you could
use generate-id (which probably is doing that internally anyway,
although you can not guarantee that) or you just count whatever nodes
you want to count, eg
count(ancestor-or-self::*)
replacing * by node() or whatever, to suit.

David


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


Current Thread