Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.11.0
-
None
-
None
-
schema 1.1 beta - running it cross compiled for .net (but pretty sure the bugs the same in a java only enviroment).
Description
load the sample file
http://www.xfront.com/xml-schema-1-1/xml-schema-1-1.zip?v=15
xml-schema-1-1\examples\error\BookStore.xsd
using the 1.1 validating parser
XMLSchema11Factory factory = new XMLSchema11Factory();
factory.setErrorHandler(errorHandler);
factory.setResourceResolver(xercesResolver);
Schema schema = factory.newSchema(new Source[]
{ new StreamSource(new InputStreamAdapter(stream), uri.AbsoluteUri) });
javax.xml.validation.Validator validator = schema.newValidator();
The codes not complete, but I suspect if you load this file into your xsd 1.1 test harness it will break the same way.
The issue is in org.apache.xerces.impl.xs.traversers.override.DOMOverrideImpl.cloneOverridenSchema()
The issue is also apparent when loading
xml-schema-1-1\examples\override\meeting\conference-calendar.xsd