<?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>5517</bug_id>
          
          <creation_ts>2008-03-03 19:12:40 +0000</creation_ts>
          <short_desc>FTContain() semantically allows searching atomic value</short_desc>
          <delta_ts>2008-03-04 16:59:11 +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</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="Jim Melton">jim.melton</assigned_to>
          
          
          <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>19262</commentid>
    <comment_count>0</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-03-03 19:12:40 +0000</bug_when>
    <thetext>Is this a legal xquery with full text search?

(&quot;abc&quot;, &quot;def&quot;, &quot;ghi&quot;) ftcontains &quot;abc&quot;

Note that for function fts:FTContainsExpr(),
 the  $searchContext is a sequence of atomic values, not a sequence of
nodes. If $ignoreNodes is not empty, then the &apos;is&apos; operation in fts:reconstruct()
should raise errors for atomic values because it is illegal to do &apos;is&apos; xquery
operation on  atomic values.  
However, if $ignoreNodes is empty, then I think it is OK to do search on atomic
values even though the 4.1 Tokenization process stated that &apos;the process of converting the string value of a node to a sequence of token occurrences&apos;
only cover the node case, not atomic value case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19263</commentid>
    <comment_count>1</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-03-03 19:54:52 +0000</bug_when>
    <thetext>it is a legal query.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19279</commentid>
    <comment_count>2</comment_count>
    <who name="zhen hua liu">zhen.liu</who>
    <bug_when>2008-03-04 16:59:11 +0000</bug_when>
    <thetext>The working draft 18 May 2007 is ambiguous for this. However, the next versoin
of the spec will fix this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>