<?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>4087</bug_id>
          
          <creation_ts>2006-12-15 16:42:20 +0000</creation_ts>
          <short_desc>XPath used for &quot;assertion&quot; should not use &quot;token&quot;</short_desc>
          <delta_ts>2009-04-21 19:21:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.1 only</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>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13211</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2006-12-15 16:42:20 +0000</bug_when>
    <thetext>Tokne has whiteSpace &quot;collapse&quot;, which means if an XPath has a string literal that contains consecutive whitespaces or new line/tab characters, they will be normalized, which may not be what&apos;s intended by the schema author.

Suggest to change the type to xs:string or a type derived from xs:string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13216</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-12-15 17:40:09 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; Suggest to change the type to xs:string or a type derived from xs:string.
&gt; 
&gt; Tokne has whiteSpace &quot;collapse&quot;, which means if an XPath has a string literal
&gt;that contains consecutive whitespaces or new line/tab characters, they will be
&gt;normalized, which may not be what&apos;s intended by the schema author.

As I read the XPath spec, when they say &quot;token&quot; they don&apos;t necessarily mean a character string in the Schema token datatype&apos;s value space.  I can&apos;t find any place where XPATH itself requires that a character string be Schema-tokenized or even whiteSpace-collapsed.  Help me out here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14061</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2007-02-22 20:39:51 +0000</bug_when>
    <thetext>The reference is not to any use of the term &apos;token&apos; in XPath
documentation; the reference is to the schema for schemas, which
currently says in part

        &lt;xs:attribute name=&quot;test&quot;&gt;
          &lt;xs:simpleType&gt;
            &lt;xs:annotation&gt;
              &lt;xs:documentation&gt;A subset of XPath expressions for use in assertion tests&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
            &lt;xs:restriction base=&quot;xs:token&quot;&gt;
            &lt;/xs:restriction&gt;
          &lt;/xs:simpleType&gt;
        &lt;/xs:attribute&gt;

The point is well taken; this should be fixed.

There is no need for tokenization by the schema processor
in any case, since it will be performed by the XPath processor.
The XPath processor&apos;s tokenization will be more reliable,
since it will be informed by the XPath grammar in ways that
XSD whitespace processing is not.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14376</commentid>
    <comment_count>3</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2007-03-09 17:51:05 +0000</bug_when>
    <thetext>Fixed: see minutes http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2007Mar/0010.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>