<?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>2180</bug_id>
          
          <creation_ts>2005-09-14 18:43:54 +0000</creation_ts>
          <short_desc>R-186: Constraints for min/maxIn/Exclusive facets</short_desc>
          <delta_ts>2009-04-21 19:21:35 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>LATER</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>6183</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:43:54 +0000</bug_when>
    <thetext>In the definitions of these facets, it says their values *must* be in the value 
space of the base type. But there is no constraint to enforce this rule. 

For example, 

&lt;simpleType name=&quot;base&quot;&gt;
  &lt;restriction base=&quot;integer&quot;&gt;
    &lt;enumeration value=&quot;7&quot;/&gt;
    &lt;enumeration value=&quot;8&quot;/&gt;
    &lt;enumeration value=&quot;9&quot;/&gt;
  &lt;restriction&gt;
&lt;simpleType&gt;

&lt;simpleType name=&quot;derived&quot;&gt;
  &lt;restriction base=&quot;my:base&quot;&gt;
    &lt;minInclusive value=&quot;6&quot;/&gt;
  &lt;restriction&gt;
&lt;simpleType&gt;

&quot;6&quot; in the derived type isn&apos;t from the value space of the base type, so this 
should be an invalid derivation, according to the definition of the 
minInclusive facet. But there is no constraint saying it&apos;s invalid. Section 
4.3.10.4 only talks about how the minInclusive value compares with the values 
in the base. 

IMO, all &quot;XXX valid restriction&quot; constraints in 4.3.7/8/9/10.4 should be 
replaced by a simple statement saying their values must be from the value space 
of the base, with the exception of min/maxExclusive, where their values could 
be the same as the value of the same facet in the base type. 

See : http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Nov/0233.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6184</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 18:44:04 +0000</bug_when>
    <thetext>Discussed at the 2003-11-20 telecon. Sandy Gao to study further, to see if 
there is already a Rec issue that covers this 

Sandy&apos;s research:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2003Dec/0038.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11897</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-20 23:05:20 +0000</bug_when>
    <thetext>At the face to face meeting of January 2006 in St. Petersburg,
the Working Group discussed this issue.  While there was some
sentiment for giving it a high priority, in the end the Working
Group decided not to take further action on this issue in XML
Schema 1.1.

The rationale for the Working Group&apos;s decision was that while
real, the design inconsistency identified in the issue does not
actually involve any logical inconsistency, and does not seem to
be presenting an acute problem for users.  While most members of
the Working Group would be glad to see this issue addressed (not
all members of the WG -- one dissenter describes this as another
instance of paternalism that complicates the spec needlessly),
the Working Group did not feel it useful to delay Datatypes 1.1
for such a change.

This issue should have been mark as RESOLVED / LATER at that
time, but apparently was not.  I am marking it that way now, to
reduce confusion.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>