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: Mon, 2 May 2005 16:20:52 +0800
Message-ID: <001001c54eef$e473c5f0$6402a8c0@pinecone>
To: "Michael Kay" <mhk@mhk.me.uk>, "'Michael Rys'" <mrys@microsoft.com>, "'martin'" <martin@x-hive.com>
Cc: "'Charles Brooking'" <charles.brooking@research.canon.com.au>, <www-ql@w3.org>

>
> With a QName on the right, interpreting $a/xs:QName($b) to mean
> $a/*[node-name()=xs:QName($b)] would make no sense at all in terms of "/" as
> a mapping operator. Of course one could have overloaded the "/" operator
> that way, but it would not have been a logical extension to the XPath 1.0
> meaning, and it would only create a shorter way of writing something that
> can already be written with a predicate.
>
You are correct. I can now sleep in peace :)
Received on Monday, 2 May 2005 08:21:17 UTC

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