W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

[Bug 2064] R-075: Potential problem with the rules for maxExclusive

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 02:53:28 +0000
To: www-xml-schema-comments@w3.org
Cc:
Message-Id: <E1EDZ16-0003oL-7W@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2064

           Summary: R-075: Potential problem with the rules for maxExclusive
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


The following example is invalid according to the definition of maxExclusive, 
which states that "The value of maxExclusive must be in the value space of the 
base type":

 <xs:simpleType name="foo">
   <xs:restriction base="xs:float">>
    <xs:maxExclusive value="5"/>
   </xs:restriction>
 </xs:simpleType>
 
 
 <xs:simpleType name="bar">
   <xs:restriction base="foo">
    <xs:maxExclusive value="5"/>
   </xs:restriction>
 </xs:simpleType>
Should the example be valid if "fixed" is specified for maxExclusive in the 
base?

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0041.html
Received on Friday, 9 September 2005 02:53:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT