Bug #1505
closedXSD 1.1 IllegalArgumentException - reference to imported element inside override
100%
Description
Saxon seems to have a problem when imported components (elements, attributes) are referenced inside an override. Please see attached files.
Error message:
Error at /xs:schema/xs:complexType[1]/xs:sequence[1]/xs:element[4] in override.xsl:
Cannot reference schema components in namespace http://datypic.com/spc as it has not been imported
Error at /xs:schema/xs:complexType[1]/xs:attribute[1] in override.xsl:
Cannot reference schema components in namespace http://datypic.com/spc as it has not been imported
Warning: at xs:override on line 7 column 42 of newsch3.xsd:
The complex type ProductType is ignored, because it does not override anything in the target schema
java.lang.IllegalArgumentException: Unknown name code 1048575
at net.sf.saxon.om.NamePool.unknownNameCode(NamePool.java:693)
at net.sf.saxon.om.NamePool.getURI(NamePool.java:496)
at com.saxonica.schema.PreparedSchema.validateReference(PreparedSchema.java:981)
at com.saxonica.schema.AttributeGroupDecl.fixup(AttributeGroupDecl.java:314)
at com.saxonica.schema.UserComplexType.fixup(UserComplexType.java:868)
at com.saxonica.schema.ElementDecl.fixup(ElementDecl.java:781)
....
Files
Please register to edit this issue