xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandy...@ca.ibm.com
Subject Re: not catching minInclusive-valid-restriction error?
Date Mon, 18 Nov 2002 15:46:15 GMT
Definitely sounds like a bug. Please open it, and I'll look into it. Thx.

Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com



                                                                                         
                                             
                      Bob DuCharme                                                       
                                             
                      <bobdc@snee.com>         To:       xerces-j-user@xml.apache.org
                                                 
                                               cc:                                       
                                             
                      11/17/2002 05:50         Subject:  not catching minInclusive-valid-restriction
error?                            
                      PM                                                                 
                                             
                      Please respond to                                                  
                                             
                      xerces-j-user                                                      
                                             
                                                                                         
                                             
                                                                                         
                                             



There was an error that Xerces Java used to catch but doesn't anymore: with

a schema that has these two declarations,

   <xs:simpleType name="monthType">
     <xs:restriction base="xs:integer">
       <xs:minInclusive value="1"/>
       <xs:maxInclusive value="12"/>
     </xs:restriction>
   </xs:simpleType>

   <xs:simpleType name="orderMonthType">
     <xs:restriction base="monthType">
       <!-- wider range (0-12) than for base type (1-12), which is illegal
-->
       <xs:minInclusive value="0"/>
       <xs:maxInclusive value="12"/>
     </xs:restriction>
   </xs:simpleType>

Xerces Java 2.0.1 gave me this error message, which is pretty
self-explanatory,

   [Error] xjutil1.xsd:48:40: minInclusive-valid-restriction.1:
minInclusive value='0' must be >= minInclusive of the base type '1'.

but neither 2.0.2 nor 2.2.1 caught the error. Am I missing something, or
should I report this as a bug?

thanks,

Bob DuCharme          www.snee.com/bob           <bob@
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii
(bobdc e-mail address used only for mailing lists)


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Mime
View raw message