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

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 UTC