Schematron validation of an XSD file
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 8
- Joined: Fri Jul 27, 2018 5:22 am
Schematron validation of an XSD file
I'm trying to use Schematron rules to help enforce naming design patterns in my teams XSD files.
I put the reference to the Schematron as a PI in the xsd but oxygen appears to ignore it.
if I change the suffix of the file to XML it still ignores it BUT if I wrap the xsd in a dummy node so the root is no longer xmlschema namespace then the schematron fires as expected.
Is there some preference I'm not setting or is this a feature/bug?
I put the reference to the Schematron as a PI in the xsd but oxygen appears to ignore it.
if I change the suffix of the file to XML it still ignores it BUT if I wrap the xsd in a dummy node so the root is no longer xmlschema namespace then the schematron fires as expected.
Is there some preference I'm not setting or is this a feature/bug?
-
- Posts: 388
- Joined: Thu Jul 01, 2004 12:29 pm
Re: Schematron validation of an XSD file
Hello,
For XSD documents you can impose Schematron rules only through a validation scenario. We do not have support to associate a Schematron directly in the XSD file.
More information about how to associate a schema through a validation scenario you can find in our user manual:
https://www.oxygenxml.com/doc/versions/ ... nario.html
You can also change the "XML Schema" document type and add a new validation scenario there, in case you want to apply the Schematron rules to all XSD files. You can find more information here:
https://www.oxygenxml.com/doc/versions/ ... ation.html
https://www.oxygenxml.com/doc/versions/ ... ework.html
Best Regards,
Octavian
For XSD documents you can impose Schematron rules only through a validation scenario. We do not have support to associate a Schematron directly in the XSD file.
More information about how to associate a schema through a validation scenario you can find in our user manual:
https://www.oxygenxml.com/doc/versions/ ... nario.html
You can also change the "XML Schema" document type and add a new validation scenario there, in case you want to apply the Schematron rules to all XSD files. You can find more information here:
https://www.oxygenxml.com/doc/versions/ ... ation.html
https://www.oxygenxml.com/doc/versions/ ... ework.html
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