<?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>9541</bug_id>
          
          <creation_ts>2010-04-16 15:59:27 +0000</creation_ts>
          <short_desc>TokenInfo term confusing</short_desc>
          <delta_ts>2011-01-05 22:12:35 +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>RESOLVED</bug_status>
          <resolution>LATER</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>liam</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>35105</commentid>
    <comment_count>0</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2010-04-16 15:59:27 +0000</bug_when>
    <thetext>From section 4.1.2:

Definition: A TokenInfo represents a contiguous collection of tokens from an XML document. 

In comparison for QueryTokenInfo:

Definition: A QueryTokenInfo is the identity of a [single] token inside a query string.

Assuming that my insertion of the word &quot;single&quot; into the definition of QueryTokenInfo for clarity is correct, then a QueryTokenInfo is info for a single token whereas TokenInfo is info for &quot;a contiguous collection of tokens.&quot;

The name &quot;TokenInfo&quot; sounds like it has info only for a single token, but it actually is either a &quot;range&quot; or &quot;span&quot; of info for &quot;a contiguous collection of tokens.&quot;

I therefore suggest that &quot;TokenInfo&quot; be renamed to something like &quot;TokenSpan&quot; or &quot;TokenRange&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35560</commentid>
    <comment_count>1</comment_count>
    <who name="Liam R E Quin">liam</who>
    <bug_when>2010-05-11 16:33:36 +0000</bug_when>
    <thetext>The joint Working Groups considered this, and agreed it would be an improvement, but we don&apos;t have resources to justify this sort of change rght now.

You could always consider joining the Working Group...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35565</commentid>
    <comment_count>2</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2010-05-11 17:23:29 +0000</bug_when>
    <thetext>In private communication with Liam Quin, he suggested that if I &quot;feel strongly that [the name change] needs to be done now, please reopen the bug and we&apos;ll reconsider.&quot;

OK, so I&apos;m reopening it.  While the mere name of something might seem trivial, it&apos;s important to choose good names and the earlier the better.  Names affect how people talk about things, how implementers will name their data structures, how others will write their own documentation, papers, books, etc.

Naturally, people will use the names used in the specification.  If a name is confusing, it will only cause the confusion to proliferate.  If the name is changed in a future release, then there will already be legacy documentation, books, code, etc., that uses the old name.

Speaking as an XQuery Full Text implementor, XQuery, although being a rich and expressive language, is quite a complicated language, both for users and implementors.  Having clear names for things is a necessary foundation.

Thank you for your reconsideration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35749</commentid>
    <comment_count>3</comment_count>
    <who name="Pat Case">pcase</who>
    <bug_when>2010-05-18 15:59:03 +0000</bug_when>
    <thetext>Paul,

The XQuery and XSL Working Groups did not have concensus to change the name of  TokenInfo at this time. We may consider the change in a future verion.

Pat Case, Library of Congress, Member XQuery Working Group</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43833</commentid>
    <comment_count>4</comment_count>
    <who name="Paul J. Lucas">paul</who>
    <bug_when>2011-01-05 22:12:35 +0000</bug_when>
    <thetext>OK, well if you&apos;re not going to change it, I see no reason to close the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>