Configuring Oxygen to Validate DITA Content Using a Schematron

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.
  1. 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.
  2. Right-click the imported .sch file and select File > Copy.
    The Astoria URL is placed on your clipboard.
  3. Open Oxygen Editor, and select Options > Preferences.
    The Preferences dialog appears.
  4. Navigate to Document Type Association, select the DITA document type, then click Edit.
    The Edit dialog appears.
  5. Select the Validation tab.
    A list of scenarios appears.
  6. Select the DITA scenario, then click the Edit option (the wrench icon at the lower right of the dialog).
  7. Click Add.
    A new row appears and is highlighted.
  8. 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.
  9. 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.
  10. Enter your Astoria credentials and click OK.
  11. Click OK on each remaining dialog.
  12. 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.
  13. 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.