<?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>6446</bug_id>
          
          <creation_ts>2009-01-19 13:14:06 +0000</creation_ts>
          <short_desc>wrong result for IDREFS_length006_395 and NMTOKENS_length006_438</short_desc>
          <delta_ts>2010-07-06 14:22:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema Test Suite</product>
          <component>Microsoft tests</component>
          <version>2006-11-06</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>metadata updated 2010-07-06</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>6447</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tobias Koenig">tobias.koenig</reporter>
          <assigned_to name="Henry S. Thompson">ht</assigned_to>
          <cc>David_E3</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="XML Schema Test Suite mailing list">public-xml-schema-testsuite</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23151</commentid>
    <comment_count>0</comment_count>
    <who name="Tobias Koenig">tobias.koenig</who>
    <bug_when>2009-01-19 13:14:06 +0000</bug_when>
    <thetext>Hej,

the two test cases mentioned above are marked as invalid, as they
define simple types with both, a minLength and length, set.

The rule that should cause this error is http://www.w3.org/TR/xmlschema11-2/#length-coss:

1 It is an error for minLength to be a member of {facets}

however there is the subrule:

  1.2 unless there is some type definition from which this one is derived by one or more ·restriction· steps in which minLength has the same {value} and length is not specified.

Actually 1.2 matches on the two mentioned test cases. Both, IDREFS and NMTOKENS defines a minLength facet with value &apos;1&apos; in the schema spec (at least in schema 1.1 explicitly), so rule 1.2 applies and the facet is valid, so both test cases should be marked as valid</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25133</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-05-13 10:50:38 +0000</bug_when>
    <thetext>I agree, in my view both these schemas are valid in both 1.0 and 1.1.

(For info, Saxon 9.1 rejects them, 9.2 accepts them)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35106</commentid>
    <comment_count>2</comment_count>
    <who name="David Ezell">David_E3</who>
    <bug_when>2010-04-16 16:04:39 +0000</bug_when>
    <thetext>WG agreed that this test as it is is disputedTest, and the WG has agreed that it should actually be marked valid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>