<?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>2750</bug_id>
          
          <creation_ts>2006-01-20 21:34:06 +0000</creation_ts>
          <short_desc>wd-24: Regarding upper and lower bounds (another problem with paternalism)</short_desc>
          <delta_ts>2006-09-21 00:00:31 +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>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsAgreement</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mary Holstege">holstege</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>7914</commentid>
    <comment_count>0</comment_count>
    <who name="Mary Holstege">holstege</who>
    <bug_when>2006-01-20 21:34:06 +0000</bug_when>
    <thetext>The definition of maxInclusive defines a constraint on schemas that says:

Schema Component Constraint: maxInclusive valid restriction

It is an error if any of the following conditions is true:

1 maxInclusive is among the members of {facets} of {base type definition} and 
{value} is greater than the {value} of that maxInclusive.

2 maxExclusive is among the members of {facets} of {base type definition} and 
{value} is greater than or equal to the {value} of that maxExclusive.

3 minInclusive is among the members of {facets} of {base type definition} and 
{value} is less than the {value} of that minInclusive.

4 minExclusive is among the members of {facets} of {base type definition} and 
{value} is less than or equal to the {value} of that minExclusive.

This suggests that incompatible or nonsensical values for upper and lower bounds 
are illegal, but only if imposed in different steps. Does that mean that it&apos;s 
legal to write the following?
&lt;xsd:simpleType&gt; &lt;xsd:restriction base=&quot;xsd:integer&quot;&gt; &lt;xsd:maxInclusive 
value=&quot;10&quot;/&gt; &lt;xsd:maxExclusive value=&quot;10&quot;/&gt; &lt;/xsd:restriction&gt; &lt;/xsd:simpleType&gt;

Or have I missed some rule elsewhere?

I take this as another instantiation of the principle that a paternalist&apos;s work 
is never done, and that life will be simpler and we will have more confidence in 
the correctness of our spec if we abandon paternalism.

Proposal concerning
Part 2
maxInclusive
Schema Component Constraint: maxInclusive valid restriction

Discussion history
27 Jan 2005 (http://lists.w3.org/Archives/Public/www-xml-schema-comments/
2005JanMar/0019.html)

Transition history
raised on 27 Jan 2005 by C. M. Sperberg-McQueen (http://lists.w3.org/Archives/
Public/www-xml-schema-comments/2005JanMar/0018.html)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7938</commentid>
    <comment_count>1</comment_count>
    <who name="Dave Peterson">davep</who>
    <bug_when>2006-01-20 22:50:29 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; This suggests that incompatible or nonsensical values for upper and lower bounds 
&gt; are illegal, but only if imposed in different steps.

Without having time to search, it&apos;s my recollection that one cannot put
&quot;In&quot; and &quot;Ex&quot; (for the same one of &quot;max&quot; and &quot;min&quot;) in the same step.
So that excludes some of the silly options.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11922</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-09-21 00:00:31 +0000</bug_when>
    <thetext>At the face to face meeting of January 2006 in St. Petersburg,
the Working Group decided not to take further action on this
issue in XML Schema 1.1.  (This issue was not discussed
separately; it was one of those which were dispatched by a
blanket decision that all other open issues would be closed
without action, unless raised again in last-call comments.)  Some
members of the Working Group expressed regret over not being able
to resolve all the issues dealt with in this way, but on the
whole the Working Group felt it better not to delay Datatypes 1.1
in order to resolve all of them.

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

    </bug>

</bugzilla>