Schematron in easyDITA

Use schematron to enforce a variety of content production rules your authoring team needs to follow.

Introduction

easyDITA continually checks the DITA structures in your content, ensuring they're valid. If they aren't, easyDITA provides in-editor indications that there is a structural issue and how to resolve it.

Similarly, easyDITA can continually apply schematron rules to check the actual content in your DITA topics, making sure that the content adheres to your organizations information architecture and providing guidance if the content doesn't. To do this, easyDITA applies schematron rules.
Note: Schematron rules can be developed to test against DITA content and structure. However, because easyDITA is continually running validation for the DITA structure, your schematron rules can focus on non-structural issues.

Schematron - What Is It?

Running schematron on your content is essentially the application of individual "tests" on different patterns in the DITA content, for example, particular strings of text. Given the rules you want to enforce, either your content passes the tests or it fails. If your content fails a test, easyDITA will alert the writer to the problem and a note about how to resolve.

Schematron is based on the XPath language to define and evaluate structures of element and attributes and their relations to one another. Because of this, schematron rules use also operators, functions, and syntax from the XPath language. For detailed information on these, see XPath.

To test your content, easyDITA applies predefined schemas that consist of the following primary elements and attributes: