Possible Bug with XML Schema 1.1 override
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Possible Bug with XML Schema 1.1 override
Hi,
I have to use the XSD Schema 1.1 feature xs:override for the first time, and found something that looks like a bug. The real use Case deals with a complex ebXML Schema construct (XML Schema 1.0). For the purpose of demonstration i have two very simple Schema files.
The first one has no versioning attributes in the Namespace http://www.w3.org/2007/XMLSchema-versioning . It is called Base.xsd and defines the global root Element with child Elements called child
The second Schema File called Overriding.xsd is of Version 1.1. I overrides the root Element from Base.xsd, so that child Elements are called subelement.
What happens is that when i validate the Overriding Schema File with XERCES as Default Schema Validation Engine, the schema File is valid;
But when i validate the same Overriding Schema File with Saxon EE, i get the following Error:
System ID: /home/frank/override.xsl
Main validation file: /home/frank/test/Overriding.xsd
Engine name: Saxon-EE 9.9.1.7
Severity: error
Description: <xs:schema> must be the outermost element in a schema document
It is most interesting, that the Resource / System ID says "/home/frank/override.xsl", although there is no such file.
This happens in Oxygen 23 build 2020111805 on Linux.
Thanks in Advance,
Frank
I have to use the XSD Schema 1.1 feature xs:override for the first time, and found something that looks like a bug. The real use Case deals with a complex ebXML Schema construct (XML Schema 1.0). For the purpose of demonstration i have two very simple Schema files.
The first one has no versioning attributes in the Namespace http://www.w3.org/2007/XMLSchema-versioning . It is called Base.xsd and defines the global root Element with child Elements called child
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://demo.com" xmlns:tns="http://demo.com">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="child" type="xs:token"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified"
vc:minVersion="1.1" targetNamespace="http://demo.com" xmlns:tns="http://demo.com">
<xs:override schemaLocation="Base.xsd">
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="subelement" maxOccurs="unbounded" type="xs:positiveInteger"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:override>
</xs:schema>
But when i validate the same Overriding Schema File with Saxon EE, i get the following Error:
System ID: /home/frank/override.xsl
Main validation file: /home/frank/test/Overriding.xsd
Engine name: Saxon-EE 9.9.1.7
Severity: error
Description: <xs:schema> must be the outermost element in a schema document
It is most interesting, that the Resource / System ID says "/home/frank/override.xsl", although there is no such file.
This happens in Oxygen 23 build 2020111805 on Linux.
Thanks in Advance,
Frank
Re: Possible Bug with XML Schema 1.1 override
Hello,
Thanks for your feedback.
There is a problem with the Saxon validation, I already reported this problem at Saxon, and they fixed it. Here is the Saxon issue: https://saxonica.plan.io/issues/4518
We need to update the default Saxon library in Oxygen, probably in the next Oxygen major release.
Best Regards,
Octavian
Thanks for your feedback.
There is a problem with the Saxon validation, I already reported this problem at Saxon, and they fixed it. Here is the Saxon issue: https://saxonica.plan.io/issues/4518
We need to update the default Saxon library in Oxygen, probably in the next Oxygen major release.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Possible Bug with XML Schema 1.1 override
Hello Frank,
Just want to let you know that we released Oxygen version 24.1. The issue that you reported should be fixed.
The new version includes Saxon 10.6 as built-in transformer, as well as Saxon 10.7 and Saxon 11.2 as add-ons.
For the complete list of features, you can go to:
https://www.oxygenxml.com/xml_editor/wh ... SLT_XQuery
Best Regards,
Octavian
Just want to let you know that we released Oxygen version 24.1. The issue that you reported should be fixed.
The new version includes Saxon 10.6 as built-in transformer, as well as Saxon 10.7 and Saxon 11.2 as add-ons.
For the complete list of features, you can go to:
https://www.oxygenxml.com/xml_editor/wh ... SLT_XQuery
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 1
- Joined: Wed Jun 08, 2022 6:09 pm
Re: Possible Bug with XML Schema 1.1 override
Post by andersbonielsen »
This seems to be related to:
https://issues.apache.org/jira/browse/XERCESJ-1674
https://issues.apache.org/jira/browse/XERCESJ-1627
Does Oxygen version 24.1 also fix the issue XERCESJ-1627 reported by Octavian Nadolu?
Note that XERCESJ-1674 is stated as "Resolved" by assignee Mukul Gandhi whereas XERCESJ-1627 is still stated as "Open" by assignee Mukul Gandhi.
Best regards, Anders Bo Nielsen
https://issues.apache.org/jira/browse/XERCESJ-1674
https://issues.apache.org/jira/browse/XERCESJ-1627
Does Oxygen version 24.1 also fix the issue XERCESJ-1627 reported by Octavian Nadolu?
Note that XERCESJ-1674 is stated as "Resolved" by assignee Mukul Gandhi whereas XERCESJ-1627 is still stated as "Open" by assignee Mukul Gandhi.
Best regards, Anders Bo Nielsen
Re: Possible Bug with XML Schema 1.1 override
Hello,
The issues are similar but XERCESJ-1674 does not fix XERCESJ-1627. In the issue that I reported it seems that there is a problem with the order of resolving the import and overwrite, as Mukul explains on that issue.
Best Regards,
Octavian
The issues are similar but XERCESJ-1674 does not fix XERCESJ-1627. In the issue that I reported it seems that there is a problem with the order of resolving the import and overwrite, as Mukul explains on that issue.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service