<?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>1893</bug_id>
          
          <creation_ts>2005-08-26 13:54:21 +0000</creation_ts>
          <short_desc>R-203: Inconsistency with constraints on min/maxExclusive</short_desc>
          <delta_ts>2009-04-21 19:21:32 +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.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="XML Schema WG">w3c-xml-schema-wg</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>5504</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-08-26 13:54:21 +0000</bug_when>
    <thetext>&quot;Schema Component Constraint: minExclusive valid restriction

It is an error if any of the following conditions is true: 
2 maxInclusive is among the members of {facets} of {base type definition} and 
{value} is greater the {value} of the parent maxInclusive&quot; 
So it&apos;s an error for minEx &gt; base.maxIn, which implies minEx &lt;= base.maxIn (if 
minEx == maxIn, it results in an empty value space)

&quot;Schema Component Constraint: maxExclusive valid restriction

It is an error if any of the following conditions is true: 
3 minInclusive is among the members of {facets} of {base type definition} and 
{value} is less than or equal to the {value} of the parent minInclusive&quot; 
So it&apos;s an error for maxEx &lt;= base.minIn, which implies maxEx &gt; base.minIn

Isn&apos;t this inconsistent? Shouldn&apos;t this be either: 

minEx &lt; base.maxIn &amp;&amp; maxEx &gt; base.minIn 
or 
minEx &lt;= base.maxIn &amp;&amp; maxEx &gt;= base.minIn 

See
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JanMar/0037.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6643</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-10-04 20:45:45 +0000</bug_when>
    <thetext>Discussed at 2005-09-23 telecon.

Resolved: Classify 1893 as error with corrigendum against 1.0, but ask 
implementors which way they resolved the inconsistency before deciding how to 
resolve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7110</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-11-09 12:27:37 +0000</bug_when>
    <thetext>This appears to apply both to 1.0 and to 1.1; since there is not
now a separate issue for 1.1, I&apos;m reassigning this to version
1.0/1.1 both.  This assignment is based on a hasty reading of the
description and may be wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8804</commentid>
    <comment_count>3</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-03-21 00:14:40 +0000</bug_when>
    <thetext>The Working Group discussed this issue in the face to face meeting of
January 2006 in St Petersburg, Florida, and adopted a proposal to
change (in 1.1) the relevant part of section 4.3.9.4 to read:

   Schema Component Constraint: minExclusive valid restriction
   It is an ·error· if any of the following conditions is true:
     1 minExclusive is among the members of {facets} of {base type
       definition} and {value} is less than the {value} of that
       minExclusive.
     2 minInclusive is among the members of {facets} of {base type
       definition} and {value} is less than the {value} of that
       minInclusive.
     3 maxInclusive is among the members of {facets} of {base type
       definition} and {value} is greater than or equal to the
       {value} of that maxInclusive.
     4 maxExclusive is among the members of {facets} of {base type
       definition} and {value} is greater than or equal to the
       {value} of that maxExclusive.

The changed wording appears in the Last Call draft of February 2006.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>