This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Transitive closure for XPath




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]