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

Re: Variable references in path expressions

From: TAN Kuan Hui <kuanhui@xemantics.com>
Date: Fri, 29 Apr 2005 09:59:26 +0800
Message-ID: <006001c54c5f$211d2750$6402a8c0@pinecone>
To: "Michael Rys" <mrys@microsoft.com>, "Michael Kay" <mhk@mhk.me.uk>, "martin" <martin@x-hive.com>
Cc: "Charles Brooking" <charles.brooking@research.canon.com.au>, <www-ql@w3.org>

> That reminds of a recent conference paper I reviewed that was writing
> /$a/$b/$c all the time as XPath expressions. It took me a while to
> understand that they actually meant it would parameterize the path
> expression....

parameterizing the path expression did not cross my mind.
its about how "/" should interprete its rhs operand. In this case
a sequence of atomic types.

$a/$b == $b if $a is a singleton does not make sense to me
with the "/" operator. Please adhere to the objective of path
expression. Yes, I can understand how the above was
derive given the current way the semantics has been designed.
It has got nothing to do with the XQuery syntax or the
static/dynamic context or the binding of variables or
the parameterizing of path expression.
It has got to do with the semantics of "/" in the presence of
a sequence of atomic items on the rhs (and I am not deliberating
about a sequence of resulting atomic items).
Received on Friday, 29 April 2005 01:59:54 UTC

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