[Bug 5832] New: wrong solution in xquery full text use case doc section 11.2.2

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

           Summary: wrong solution in xquery full text use case doc  section
                    11.2.2
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: zhen.liu@oracle.com
         QAContact: public-qt-comments@w3.org


In
http://www.w3.org/TR/xmlquery-full-text-use-cases/#cardinality-queries-results-q2
 (W3C Working Draft 16 May 2008)

for $book in doc("http://bstore1.example.com/full-text.xml")
   /books/book                        
let $subj := $book/metadata/subjects/subject            
where (some $s1 in $subj satisfies $subj ftcontains "web site")    
   and (some $s2 in $subj satisfies $subj ftcontains "usability")
return $book

This solution is NOT correct, the inner some clauses should use $s1 and $2, the
correct solution is below:

for $book in doc("http://bstore1.example.com/full-text.xml")
   /books/book                        
let $subj := $book/metadata/subjects/subject            
where (some $s1 in $subj satisfies $s1 ftcontains "web site")    
   and (some $s2 in $subj satisfies $s2 ftcontains "usability")
return $book


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 3 July 2008 17:54:15 UTC