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

Re: XQuery Predicate syntax

From: Philippe Michiels <philippe.michiels@ua.ac.be>
Date: Thu, 22 Apr 2004 20:03:20 +0200
To: Murali Mani <mani@CS.UCLA.EDU>
Cc: www-ql@w3.org
Message-Id: <200404222003.20990.philippe.michiels@ua.ac.be>

These two queries are different:

> //student["Adam"]/advisor

In this query, the predicate's effective boolean value is computed and, as it 
is a non empty string, it evaluates to true.

> //student[text () = "Adam"]/advisor
This query selects all students where the combined text nodes are equal to 
"Adam".

Best,
Ph
-- 
Philippe Michiels
Universiteit Antwerpen
ADReM (Advanced Database Research and Modelling)
http://www.adrem.ua.ac.be/~michiels
Received on Thursday, 22 April 2004 14:03:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:19 GMT