W3C home > Mailing lists > Public > www-xml-query-comments@w3.org > June 2002

Qualifiers Question

From: Margaret Green <mgreen@nextance.com>
Date: Wed, 12 Jun 2002 18:23:08 -0700
Message-ID: <458473676F1AC74A84EAB2F22004DA6D0BF188@mail.nextance.com>
To: <www-xml-query-comments@w3.org>
Hello,
 
I have an XQuery grammar question. From the current working document,
http://www.w3.org/TR/2002/WD-xquery-20020430 
The example in question:
 
Section 4.4 Queries on Sequence
the third example 
 
for $p in //procedure
where some $i in $proc//incision satisfies
        empty($proc//anesthesia[. precedes $i])
return $p
 
 
 
I believe $proc//anesthesia matches the relative path expression:
RelativePathExpr
 
For the Qualifiers predicate that follows it, [. precedes $i]   I can
find no expression that would match.
 
The parse at that point has identified ........... PrimaryExpr  ->
FunctionCall  -> RelativePathExpr
 
FunctionCall would have to consume its' right paren before PrimaryExpr
could match Qualifiers
 
The RelativePathExpr is idendtifying a sequence of nodes and Qualifiers
predicate filters node sequences. So I think the example is right. Am I
missing something or is the grammar? Enlighten me please.
 
 
Margaret Green
 
Received on Wednesday, 12 June 2002 21:26:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 2 February 2007 00:13:05 GMT