Re: XQuery Predicate syntax

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 UTC