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

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 UTC