Skip to main content

Validation

One of the benefits of working in XML is that you can validate your content against established rules. So you can be confident that your topics have a valid XML structure that is consistent and can be exported easily if needed. Depending on your preferences, you can either:

  • Set Paligo to validate your content automatically whenever you save a topic

  • Get Paligo to validate your content on demand, by using the manual validation feature.

When you validate your content, Paligo examines the structure of your topic and checks that it complies with the validation rules. If the content complies with the rules, the structure is fine to use and you can save your topic. If the content breaks the rules, Paligo displays a notification message to let you know and also provides information in the Validation section in the side panel.

Paligo error message dialog. It tells you that Paligo has detected some validation errors in your content and that you can find out about them in the validation panel.
Validation panel in the Paligo editor. It shows that some of the current content breaks the Paligo XML schema rules and provides details on what content is breaking the rule. There are also sections for the Paligo recommended rules and the Schematron validation for custom rules.

There are three sets of rules that you can apply:

To find out more about these different types of validation, see Validation Rules.

You can choose to use all three sets of rules, any combination of the rules, or no rules at all (not recommended).

Caution

We strongly recommend that you have Paligo XML validation and Paligo recommended validation enabled in your topics. Disabling them could mean that features in Paligo do not work as intended and Paligo may run slowly.

The option to disable these features is designed for those occasions where you need to save the content, and will fix the validation problems later. For example, if an import produces invalid content or the person who encounters the validation error is not the person who will fix it.

If your content complies with the rules of validation, it can be saved. But if it breaks the rules, it cannot be saved, and instead, Paligo displays an error message. You will need to fix the XML before it can be saved (or disable the validation rules that are being broken).

If you have tried to save a topic, but Paligo has detected a problem and displayed a validation error message, see Invalid Content.

To find out how to choose what validation is used, see Turn Validation On or Off for a Topic.

To use your own Schematron file to apply extra validation rules, see Upload Schematron Files to Paligo.