XQuery Predicate syntax

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.

Received on Thursday, 22 April 2004 13:53:12 UTC