W3C home > Mailing lists > Public > public-qt-comments@w3.org > August 2007

[Bug 4972] wrong scope usage in use case XQuery-XPath-Composability

From: <bugzilla@wiggum.w3.org>
Date: Mon, 20 Aug 2007 17:23:32 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1INAyS-0005CH-OQ@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4972

           Summary: wrong scope usage in use case XQuery-XPath-Composability
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Full Text
        AssignedTo: cbotev@cs.cornell.edu
        ReportedBy: cbotev@cs.cornell.edu
         QAContact: public-qt-comments@w3.org


See http://lists.w3.org/Archives/Member/member-query-fttf/2007Aug/0018.html

*5) Use Case XQuery-XPath-Composability *

Q2 Full-Text Query Returning Count of Descendant Element Occurrences
wrong scope usage: title is already out of scope
Suggestion: $title is bound in for, but second usage of $title is after the
flowr

<number-of-steps>
{count($title/..//step)}
</number-of-steps>

Q7 Full-Text Query with Date Comparison and Element Occurrence Count
wrong scope usage: in the predicates [] $book is not yet bound/in scope
Suggestion: replace $book in binding path with .

for $book in doc("FTTests/Files/sample_data.xml")
/books/book
[(($book/metadata/publicationInfo/dateIssued > "2000-12-31")
Received on Monday, 20 August 2007 17:23:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:20 GMT