Validating a Topic with Schematron
You can validate a topic using a subset of the Schematron Document Schema Definition Language (DSDL). This subset is currently limited to and elements only.
If a topic template is named topic.xml then the file named topic.xml.sch would be the schema used to add a Schematron validation step to the topics.
Schematron files are save along with the template files in the collection's root folder.
Validating a topic with Schematron
To validate a topic with it's shematron schema, follow these steps.
- Click the Validate with Schematron button that's found right above the editing area.
If the Schematron pass is valid, the content of the elements will be displayed in place of the elements in the message box.
Creating a Schematron schema
You can learn about Schematron at many places on the web. See this topic for available resources. Remember that only a small subset of the Schematron specification is currently supported by Tópico.
As an example, here a small schema that warns the author if any div of class="section" is missing a p of class="title".
See Creating Custom Topic Types to learn more about creating topic types.