W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2005

Re: FW: Re: Variable references in path expressions

From: Charles Brooking <charles.brooking@research.canon.com.au>
Date: Wed, 27 Apr 2005 08:30:50 +1000
Message-ID: <426EC11A.3070609@research.canon.com.au>
To: www-ql@w3.org

Michael Kay wrote:

>I was thinking of a different case, $a/b() where the function b() returns
>three elements. In that case, b() must be evaluated three times, and returns
>three different elements each time. With a variable reference, however, the
>variable must be evaluated exactly once, and the same value is used each
>time. So the result is (<b1/>, <b2/>, <b3/>) or some permutation thereof
>(since these elements are not in the same tree, their relative document
>order is unpredictable).
Thanks Michael, Bas, Henry, and others who contributed.

I think my original question really come down to what the semantics for 
variable binding are; having this clear  means that everything else 
behaves as expected.

Received on Tuesday, 26 April 2005 22:31:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:44 UTC