W3C home > Mailing lists > Public > public-qt-comments@w3.org > July 2008

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

From: <bugzilla@wiggum.w3.org>
Date: Thu, 03 Jul 2008 17:53:40 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-5832-523@http.www.w3.org/Bugs/Public/>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 3 July 2008 17:54:15 GMT