<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5832</bug_id>
          
          <creation_ts>2008-07-03 17:53:40 +0000</creation_ts>
          <short_desc>wrong solution in xquery full text use case doc  section 11.2.2</short_desc>
          <delta_ts>2011-01-07 00:08:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Full Text 1.0 Use Cases</component>
          <version>Working drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="zhen hua liu">zhen.liu</reporter>
          <assigned_to name="Pat Case">pcase</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>pcase</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21053</commentid>
    <comment_count>0</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-07-03 17:53:40 +0000</bug_when>
    <thetext>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(&quot;http://bstore1.example.com/full-text.xml&quot;)
   /books/book                        
let $subj := $book/metadata/subjects/subject            
where (some $s1 in $subj satisfies $subj ftcontains &quot;web site&quot;)    
   and (some $s2 in $subj satisfies $subj ftcontains &quot;usability&quot;)
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(&quot;http://bstore1.example.com/full-text.xml&quot;)
   /books/book                        
let $subj := $book/metadata/subjects/subject            
where (some $s1 in $subj satisfies $s1 ftcontains &quot;web site&quot;)    
   and (some $s2 in $subj satisfies $s2 ftcontains &quot;usability&quot;)
return $book</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21083</commentid>
    <comment_count>1</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2008-07-07 17:13:01 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21198</commentid>
    <comment_count>2</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2008-07-16 15:34:35 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>