Project

Profile

Help

Bug #4518

closed

Saxon XSD 1.1 using Saxon EE : use of xs:override

Added by Octavian Nadolu about 4 years ago. Updated over 3 years ago.

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

100%

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

Description

If I validate the attached file "conference-calendar.xsd" with Saxon EE 9.9.1.7 (also with Saxon EE 9.9.1.5) I get the following error: "xs:schema must be the outermost element in a schema document"

This is the stack trace of the error:

; SystemID: file:///D:/Programs/Oxygen%20XML%20Editor%2022.0/override.xsl; Line#: -1; Column#: -1
net.sf.saxon.type.SchemaException: <xs:schema> must be the outermost element in a schema document
	at com.saxonica.ee.schema.sdoc.SchemaElement.error(SchemaElement.java:396)
	at com.saxonica.ee.schema.sdoc.XSDSchema.validate(XSDSchema.java:392)
	at com.saxonica.ee.schema.sdoc.SchemaElement.validateSubtree(SchemaElement.java:192)
	at com.saxonica.ee.schema.sdoc.XSDOverride.prepareAttributes(XSDOverride.java:131)
	at com.saxonica.ee.schema.sdoc.SchemaElement.processAllAttributes(SchemaElement.java:131)
	at com.saxonica.ee.schema.sdoc.SchemaElement.processAllAttributes(SchemaElement.java:136)
	at com.saxonica.ee.schema.sdoc.SchemaReader.read(SchemaReader.java:167)
	at com.saxonica.config.EnterpriseConfiguration.addSchemaSource(EnterpriseConfiguration.java:676)
	at com.saxonica.ee.jaxp.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:271)
	at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)

Files

conference-calendar.xsd (622 Bytes) conference-calendar.xsd Octavian Nadolu, 2020-04-14 09:30
office-calendar.xsd (726 Bytes) office-calendar.xsd Octavian Nadolu, 2020-04-14 09:30

Please register to edit this issue

Also available in: Atom PDF