W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2001

Re: Transitive closure for XPath

From: Christian Nentwich <c.nentwich@cs.ucl.ac.uk>
Date: Mon, 23 Apr 2001 18:24:06 -0400 (EDT)
Message-ID: <001201c0cc43$d63449c0$0100a8c0@homebase>
To: "mhkay" <mhkay@iclway.co.uk>, "xsl-editors" <xsl-editors@w3.org>

> If functions can be supplied as arguments to a function call or returned
as
> results of a function call, then it's reasonable to define a function that
> takes a function as its input and returns its transitive closure as its
> result; without that, it seems very difficult.

Indeed, that would be a nice way of going about it, although TC itself could
probably be achieved more cheaply..

For higher order functions, some lexical construct is needed that prevents
an XPath processor from evaluating the parameters passed to a function
before evaluating the function. If you want to pass a function as a
parameter, you will have to prevent the processor from evaluating that
function before passing it.

Christian Nentwich
Received on Tuesday, 24 April 2001 00:25:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT