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

RE: Variable references in path expressions

From: Michael Kay <mhk@mhk.me.uk>
Date: Thu, 28 Apr 2005 11:17:40 +0100
To: "'TAN Kuan Hui'" <kuanhui@xemantics.com>, "'Charles Brooking'" <charles.brooking@research.canon.com.au>, <www-ql@w3.org>
Message-ID: <E1DR65w-0001Dc-1g@lisa.w3.org>

> >
> I have a problem with this interpretation. The lhs of "/" 
> iterates each item
> to establish the focus for evaluation of each item in the rhs 
> expression. Yes ?
> Now if each item is a QName, then this should be interpreted as a
> Name test. No ?


The value of the expression "my:idea" is the string "my:idea", it is not the
value of the expression ./child::my:idea. Values are treated as values, not
as expressions to be evaluated.

Michael Kay
Received on Thursday, 28 April 2005 10:18:19 UTC

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