Hi all, When I tried with xerces 2.11.0 I found it doesn't report validation error for the following schema file when I load schema with SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(schemaFile):
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > <xs:simpleType name="base"> <xs:restriction base="xs:time"> <xs:maxInclusive value="12:00:00-09:00"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="extend"> <xs:restriction base="base"> <xs:maxInclusive value="12:00:00-11:00"/> </xs:restriction> </xs:simpleType> </xs:schema> But load schema with xerces 2.9.1 and it always complains with validation error : org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 30; cvc-maxInclusive-valid: Value '12:00:00-11:00' is not facet-valid with respect to maxInclusive '21:00:00Z' for type 'base'. I looked at the code change after 2.9.1 and it looks the change [1] compares time without day and treat this schema is valid. Is this an issue introduced by this change ? [1] http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/impl/dv/xs/TimeDV.java?r1=784913&r2=784912&pathrev=784913 thanks, Jim