Gretyl's Portal

Heretto Help

Schematron Content Validation

Schematron enables you to enforce content architecture rules for your authoring team as they are authoring in Heretto CCMS.

Schematron Use Case

Schematron is a great solution if you want to validate your DITA content architecture by enforcing content structural rules specific to your organization. For example, you can define a rule that ensures an unordered list element has at least two list item elements.

If you are interested in validating the language layer of your content for grammar and style, consider integrating your Heretto CCMS with an external language-validation tool rather than using Schematron rules. For more information, contact your Customer Success Manager.

Basic Schematron Rules

When Schematron is enabled, Heretto CCMS continuously evaluates your content and structure against any configured Schematron rules. When it detects a match, Heretto CCMS surrounds the matching content with an orange border, and inserts a tick mark in the right side of the Content Editor. Hover over the tick mark to review the triggered Heretto CCMS rule.


Schematron rule example

Schematron Rules with QuickFix

Basic Schematron rules can be extended to trigger defined QuickFix activities with a click of a button. Currently, the QuickFix implementation in Heretto CCMS enables you to either add or replace XML nodes, that is, elements or attributes.


Schematron QuickFix example

Schematron Rules Development

Out of the box, Heretto provides a number of generic Heretto rules.

To implement custom Schematron rules, contact your Customer Success Manager. You can compose the rules on your own and provide them to Heretto for installation in your instance.