Attached schema (anyURI_b006.xsd) holds invalid instance of xs:anyURI. The piece of code that compiles it ---------------- SchemaFactory sf = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI); sf.setErrorHandler(errorCollector); Schema schema = sf.newSchema( new File("anyURI_b006.xsd")); ---------------- does not throw SAXException: ----------------- ERROR] enumeration-valid-restriction: Enumeration value '\\' is not in the value space of the base type, anyURI. ----------------- as expected. See also the bug http://www.w3.org/Bugs/Public/show_bug.cgi?id=4048
|