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

RE: Transitive closure for XPath

From: Michael Kay <mhkay@iclway.co.uk>
Date: Tue, 24 Apr 2001 10:38:23 +0100
To: "'Christian Nentwich'" <c.nentwich@cs.ucl.ac.uk>, "'xsl-editors'" <xsl-editors@w3.org>
Message-ID: <002601c0cca2$4eb3ac20$0100007f@PCUKMKA>
> 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.

Yes. Saxon's solution is to combine this with the facility to create an
expression from a string, so you write

saxon:sum($nodeset, saxon:expression("@price * @qty"))

(An expression is logically a function whose only argument is the XPath

I think David Rosenborg's FXPath proposal has gone rather further than this,
towards full lambda expressions.

Mike Kay
Received on Tuesday, 24 April 2001 05:36:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:21 UTC