Re: [xsl] Transitive closure for XPath

Subject: Re: [xsl] Transitive closure for XPath
From: Francis Norton <francis@xxxxxxxxxxx>
Date: Thu, 19 Apr 2001 18:33:50 +0100

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:
> 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)


 XSL-List info and archive:

Current Thread