Editing Schematron Schemas
Schematron is a simple and powerful Structural Schema Language for making assertions about patterns found in XML documents. It relies almost entirely on XPath query patterns for defining rules and checks. Schematron validation rules allow you to specify a meaningful error message. This error message is provided to you if an error is encountered during the validation stage.
Oxygen XML Developer assists you in editing Schematron documents with schema-based content completion, syntax highlight, search and refactor actions, and dedicated icons for the Outline view. You can create a new Schematron schema using one of the Schematron templates available in the New document wizard.
For information about applying and detecting Schematron schemas, see Associating a Schema to XML Documents.
Validating XML Documents Against Schematron
The Skeleton XSLT processor is used for validation and conforms with ISO Schematron or Schematron 1.5. It allows you to validate XML documents against Schematron schemas or against combined RELAX NG / W3C XML Schema and Schematron.
How to Specify the Query Language Binding
You can specify the query language binding to be used in the Schematron schema by doing the following:
- For embedded ISO schematron, open the Preferences dialog box , go to , and select it in the Embedded rules query language binding option.
- For standalone ISO Schematron, specify the version by setting the query language to
be
used in a
queryBinding
attribute on the schema root element. For more information see the Query Language Binding section of the Schematron specifications. - For Schematron 1.5 (standalone and embedded), open the Preferences dialog box , go to , and select the version in the XPath Version option.
Multi-Lingual Support in Schematron Messages
You can specify the desired language for the validation messages in the
Schematron Preferences page. The Schematron validation
messages can be presented in multiple languages by defining the language for each
message
using the Schematron diagnostics
. For more information, see the Use of
Schematron for Multi-Lingual Schemas specification.
How to Customize Color Schemes in Schematron
The Schematron editor renders the XPath expressions with dedicated coloring schemes . To customize the coloring schemes, open the Preferences dialog box and go to .
Schematron Transformation Scenario
When you create a Schematron document, Oxygen XML Developer provides a built-in transformation scenario. You can use this scenario to obtain the XSLT style-sheet corresponding to the Schematron schema. You can apply this XSLT stylesheet to XML documents to obtain the Schematron validation results.
To watch our video demonstration about the Schematron support in Oxygen XML Developer, go to https://www.oxygenxml.com/demo/Schematron_Validation.html, and to https://www.oxygenxml.com/demo/Editing_Schematron_Schemas/Editing_Schematron_Schemas.html.