<?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>2089</bug_id>
          
          <creation_ts>2005-09-09 03:32:44 +0000</creation_ts>
          <short_desc>R-099: Issue re: the length facet for NMTOKENS, IDREFS, ENTITIES</short_desc>
          <delta_ts>2009-04-21 19:24:58 +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>Datatypes: XSD Part 2</component>
          <version>1.0 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></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>5986</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 03:32:44 +0000</bug_when>
    <thetext>According to the Schema for Schemas, the above types are defined as a 
restriction of another list type, by specifying a &quot;minLength&quot; facet. Then the 
following simple type:

&lt;simpleType name=&quot;mylist&quot;&gt;
  &lt;restriction base=&quot;NMTOKENS&quot;&gt;
    &lt;length value=&quot;3&quot;/&gt;
  &lt;/restriction&gt;
&lt;/simpleType&gt;
is invalid according to the constraint &quot;Schema Component Constraint: length and 
minLength or maxLength&quot;. Is this what was intended? If so, it&apos;d be very 
inconvenient: the user has to specify both minLength and maxLength to the same 
value to achieve the result.

To solve this problem 

Don&apos;t include a &quot;minLength&quot; facet in the above 3 types. But this means empty 
lists are allowed by these types (which might not be proper); or 
Allow &quot;length&quot; to be specified even if &quot;min/maxLength&quot; are specified on the 
base type, as long as base.minLength &lt;= length &lt;= base.maxLength. 

See question 2 from:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0222.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5987</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 03:33:11 +0000</bug_when>
    <thetext>At the March 8 telecon, the WG decided to classify this as an error.

April 5: The WG decided that the proposed erratum text needed to be revised to 
add the required constraints for the cases where length and one or more of 
minLength and maxLength are specified in the same derivation chain. 

Revised text:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Oct/0357.html
reviewed/approved at Nov. 1 telecon.

Erratum E2-35 added.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>