<?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>9540</bug_id>
          
          <creation_ts>2010-04-16 15:51:13 +0000</creation_ts>
          <short_desc>QueryTokenInfo definition seems wrong</short_desc>
          <delta_ts>2011-01-06 01:28:07 +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>Proposed Recommendation</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="Paul J. Lucas">paul</reporter>
          <assigned_to name="Jim Melton">jim.melton</assigned_to>
          <cc>holstege</cc>
    
    <cc>jmdyck</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>35104</commentid>
    <comment_count>0</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2010-04-16 15:51:13 +0000</bug_when>
    <thetext>From section 4.1.2:

[Definition: A QueryTokenInfo is the identity of a token inside a query string. ] Each QueryTokenInfo is associated with a starting and ending position that captures the relative position of the query string in the query.

However, in section 4.2.1.3, the schema for queryTokenInfo has only queryPos, a single integer, and not &quot;a starting and ending position,&quot; two integers, per the definition above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35822</commentid>
    <comment_count>1</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2010-05-25 15:53:55 +0000</bug_when>
    <thetext>In investigating this as directed by the WG, it appears that neither the queryPos attribute nor the described the starting and ending positions in the query are used directly in any of the semantic functions.  However, a single queryPos is carried through the semantic functions (and the accompanying diagrams).  I therefore propose to resolve the reported inconsistency by changing the definition of QueryTokenInfo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35825</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2010-05-25 16:11:54 +0000</bug_when>
    <thetext>queryPos is used by fts:ApplyFTOrder().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35826</commentid>
    <comment_count>3</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2010-05-25 19:37:31 +0000</bug_when>
    <thetext>The queryPos in ApplyFTOrder is the stringInclude queryPos, which comes from
the parameter passed through the call stack.  Regardless, there is no call for
startPos/endPos on a QueryTokenInfo, so the proposal stands.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36028</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2010-06-08 02:32:17 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; The queryPos in ApplyFTOrder is the stringInclude queryPos, which comes from
&gt; the parameter passed through the call stack.

My mistake. In fact, neither of queryTokenInfo&apos;s attributes is referenced by any of the functions in section 4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36189</commentid>
    <comment_count>5</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2010-06-15 15:01:29 +0000</bug_when>
    <thetext>Fixed definition to refer to only one position.

Please indicate your satisfaction with this resolution by closing the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43638</commentid>
    <comment_count>6</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2010-12-29 16:57:00 +0000</bug_when>
    <thetext>I&apos;d be happy to mark this as CLOSED but I can&apos;t see the updated spec from the &quot;outside&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43841</commentid>
    <comment_count>7</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2011-01-06 01:28:07 +0000</bug_when>
    <thetext>Verified as fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>