This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
Zhen, I agree that the XQuery solution for 11.2.2 is incorrect and will correct it with your solution if I do not hear any objections.
Zhen, I handled this as editorial. I corrected use of $s1 and $s2 variables in the XQuery and XPath solutions. The correction will appear internally after the next use cases build. I will send the FTTF an alert when it is ready. Please review and if you agree with the change, close the bug. Pat