Organizations that use Schematron files to enforce constraints in XML content can validate that content against a Schematron file stored in the repository.
You must have a Schematron .sch file that successfully validates DITA content.
- Using the Workbench, issue the Import Structured Document command to import the Schematron .sch file into the DTD folder in the Administration cabinet.
Note: The .sch file does not have either a DTD or XML schema attached to it in its properties.
- Right-click the imported .sch file and select .
The Astoria URL is placed on your clipboard.
- Open Oxygen Editor, and select .
The Preferences dialog appears.
- Navigate to Document Type Association, select the DITA document type, then click Edit.
The Edit dialog appears.
- Select the Validation tab.
A list of scenarios appears.
- Select the DITA scenario, then click the Edit option (the wrench icon at the lower right of the dialog).
- Click Add.
A new row appears and is highlighted.
- In the file-type column of the highlighted row, select XML Document, then select the Specify schema icon to the far right of the row.
The Specify schema dialog appears.
- Select the Use custom schema option, then paste the URL from your clipboard (copied in Step 2), then select Schematron for the Schema type field.
A login dialog appears.
- Enter your Astoria credentials and click OK.
- Click OK on each remaining dialog.
- Test the configuration by using Oxygen Editor to open a topic from the repository to edit.
Tip: Choose a file that you know will not validate against the Schematron file you have uploaded.
- In Oxygen Editor, click the Validate icon in the toolbar.
If the configuration is successful, Oxygen displays the Schematron error at the bottom of the editor window.