Edit online

Oxygen XML Web Author relies on schemas to validate XML documents and to compute valid proposals for the Content Completion Assistant. The built-in frameworks have predefined schemas associated with that particular document type but you can also use your own custom schema.

Supported Types of Schema

The following schema types are supported:
  • XML Schema 1.0 and 1.1 (with and without embedded Schematron rules)
  • DTD
  • Relax NG - XML syntax (with and without embedded Schematron rules)
  • Relax NG - compact syntax
  • NVDL
  • Schematron (both ISO Schematron and Schematron 1.5)

Detecting a Schema for Content Completion

Oxygen XML Web Author tries to detect a schema for content completion by searching several locations within the framework configuration, in the following order:

Detecting a Schema for Validation

To validate documents, Oxygen XML Web Author uses the schemas specified in validation scenarios defined in the particular framework configuration, but only those that have the Automatic Validation option selected.

Associating a Schema in the Framework Configuration

To associate a schema in a particular framework (document type), follow these steps:
  1. In Oxygen XML Editor/Author, go to Options > Preferences > Document Type Association, and edit the document type configuration for your framework (Edit or Duplicate).
  2. Go to the Schema tab.
  3. Select the schema type and its URI.
  4. Click OK on both of the dialog boxes.
  5. Create an archive that only contains your custom framework folder and upload the changes to your framework to Web Author.

Associating a Schema in Validation Scenarios Defined in the Framework Configuration

To associate a schema in validation scenarios defined in the framework (document type) configuration, follow these steps:
  1. In Oxygen XML Editor/Author, go to Options > Preferences > Document Type Association, and edit the document type configuration for your framework (Edit or Duplicate).
  2. Go to the Validation tab.
  3. Create or edit a validation scenario:
    1. To create a new validation scenario, click the New button.
    2. To edit the properties of an existing validation scenario, double-click it or select it and click the Edit button (you can also use the Duplicate button to copy an existing scenario and edit its properties).

    Step Result: The validation scenario configuration dialog box is displayed:

  4. Add or configure validation units according to your needs. To configure a unit, click the Specify Schema button.

    Step Result: The Specify Schema dialog box is displayed:

    Figure: Specify Schema Dialog Box

    The Specify Schema dialog box contains the following options:

    Use detected schema
    Uses the schema detected for the particular document.
    Use custom schema
    Allows you to specify the schema using the following options:
    • URL - Allows you to specify or select a URL for the schema. It also keeps a history of the last used schemas. The URL must point to the schema file that can be loaded from the local disk or from a remote server through HTTP(S), FTP(S) or a custom protocol. You can specify the URL by using the text field, the history drop-down, the Insert Editor Variables button, or the browsing actions in the Browse drop-down list.
    • Schema type - Select a possible schema type from this combo box that is populated based on the extension of the schema file that was entered in the URL field. The possible schema types are: XML Schema, DTD, Relax NG, Relax NG Compact, Schematron, or NVDL.
    • Embedded Schematron rules - If you have selected XML Schema or Relax NG schemas with embedded Schematron rules and you want to use those embedded rules, select this option.
    • Public ID - Allows you to specify a public ID if you have selected a DTD.
    • Extensions- Opens a dialog box that allows you to specify Java extension JARs to be used during the validation.
    • Schematron phase - If you select a Schematron schema, this drop-down list allows you to select a Schematron phase that you want to use for validation. The listed phases are defined in the Schematron document.
  5. Select the schema to be associated with the validation unit, configure the rest of the options according to your preferences, and click OK.
  6. Make sure that Automatic Validation checkbox is selected in the validation scenario configuration dialog box.
  7. Click OK on all of the dialog boxes.
  8. Create an archive that only contains your custom framework folder and upload the changes to your framework to Web Author.