This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Transitive closure for XPath
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Transitive closure for XPath
- From: Francis Norton <francis at redrice dot com>
- Date: Thu, 19 Apr 2001 18:33:50 +0100
- References: <3ADEFCFC.93E83537@cs.ucl.ac.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Christian Nentwich wrote:
>
>
> Would you please comment on a little proposal I have written - includes
> an implementation of the operator for Xalan as a freebie:
>
> http://www.cs.ucl.ac.uk/staff/c.nentwich/closure/
>
> Just imagine what this operator could do for *your* family tree XSLT
> stylesheet. Am I the only one who finds this (extremely) useful ? Please
> comment.
>
Cute. Presumably as well as
closure(/closure/node[1], id(@child))
you could have
closure(/closure/node[1], key("myKey", @child))
You need delayed evaluation of parameters. Is this straightforward in
other XSLT engines?
(Of course I'd like to rename it to expand-o-graph() since that's how I
visualise its operation)
Francis.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list