Project

Profile

Help

Bug #1505

closed

XSD 1.1 IllegalArgumentException - reference to imported element inside override

Added by Priscilla Walmsley about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Schema conformance
Sprint/Milestone:
-
Start date:
2012-04-29
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

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

prod.xsd (463 Bytes) prod.xsd Overridden schema document Priscilla Walmsley, 2012-04-29 20:39
temp.xsd (277 Bytes) temp.xsd Imported schema document Priscilla Walmsley, 2012-04-29 20:39
newsch3.xsd (981 Bytes) newsch3.xsd Main schema document Priscilla Walmsley, 2012-04-29 20:39
EX83a_1.xml (381 Bytes) EX83a_1.xml Instance Priscilla Walmsley, 2012-04-29 20:39

Please register to edit this issue

Also available in: Atom PDF