XQuery Predicate syntax

Murali Mani <[email protected]>
Newsgroups gmane.comp.web.query-languages
Message-ID <[email protected]>

I had a question regarding predicate syntax in XPath/XQuery. Is it
possible to specify

//student["Adam"]/advisor

the main question is whether the predicate is valid, and if so, whether
the semantics is equivalent to

//student[text () = "Adam"]/advisor

I could not see anything in spec which prohibited the former usage..

best, murali.
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.