<?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>4465</bug_id>
          
          <creation_ts>2007-04-13 10:32:44 +0000</creation_ts>
          <short_desc>K2-SeqExprCast-52 et seq</short_desc>
          <delta_ts>2007-05-23 09:20:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</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="Michael Kay">mike</reporter>
          <assigned_to name="Frans Englich">frans.englich</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>14719</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-04-13 10:32:44 +0000</bug_when>
    <thetext>The correct result of

K2-SeqExprCast-52
K2-SeqExprCast-53
K2-SeqExprCast-54
K2-SeqExprCast-55
K2-SeqExprCast-58
K2-SeqExprCast-59
K2-SeqExprCast-60
K2-SeqExprCast-61

hinges on whether types such as unsignedInt allow the lexical forms &quot;-0&quot; and &quot;+0&quot;.

This is something of an old chestnut. In the past there were ambiguities in F+O. I believe that F+O now states unambiguously that if the string is in the lexical space of the data type (after whitespace fudging, which isn&apos;t relevant here), then it&apos;s OK. So the answer lies in Schema Part 2.

Schema Part 2 says in section 3.3.22.1: &quot;unsignedInt has a lexical representation consisting of a finite-length sequence of decimal digits (#x30-#x39). For example: 0, 1267896754, 100000.&quot;, and this appears to disallow a sign.

However, there is nothing in the schema for schemas that disallows a sign, and the text at the top of section 3.3 says: &quot;the complete definitions of the ·built-in·  ·derived· datatypes are provided in Appendix A Schema for Datatype Definitions (normative) (§A).&quot; By implication the textual descriptions of the types in section 3.3 are incomplete.

So I believe that the S4S wins, and that &quot;-&quot; and &quot;+&quot; are therefore allowed in the lexical space.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14874</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2007-04-24 21:45:33 +0000</bug_when>
    <thetext>I wouldn&apos;t say that S4S wins, but that Schema 1.0 is ambiguous on this point.

A look at the most recent draft of Schema 1.1 Part 2: Datatypes, 3.4.21 unsignedLong, however, shows the following:

&quot;unsignedLong has a lexical representation consisting of an optional sign followed by a finite-length sequence of decimal digits (#x30-#x39). If the sign is omitted, the positive sign (&apos;+&apos;) is assumed. If the sign is present, it must be &apos;+&apos; except for lexical forms denoting zero, which may be preceded by a positive (&apos;+&apos;) or a negative (&apos;-&apos;) sign. For example: 0, 12678967543233, 100000.&quot;

Similar text exists for the other unsigned numeric types. With this additional information, I feel that +0 and -0 should be allowed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14875</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2007-04-24 21:54:33 +0000</bug_when>
    <thetext>&gt;followed by a finite-length sequence of decimal digits...

Must remember to add the test case that shows that infinite-length sequences are rejected ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15154</commentid>
    <comment_count>3</comment_count>
    <who name="Frans Englich">frans.englich</who>
    <bug_when>2007-05-23 09:20:51 +0000</bug_when>
    <thetext>Yes, should be fixed in CVS, by allowing - &amp; +.

I&apos;m working on a test case for testing that infinite-length sequences are rejected, but, phew, I doubt I&apos;ll make it to the next release..</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>