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 

Philippe Michiels
Universiteit Antwerpen
ADReM (Advanced Database Research and Modelling)
Received on Thursday, 22 April 2004 14:03:48 UTC

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