Re: XQuery Predicate syntax

Philippe Michiels <[email protected]>
Newsgroups gmane.comp.web.query-languages
Organization Universiteit Antwerpen
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.