To provide as-you-type validation and to compute valid proposals for the Content Completion
Assistant, Oxygen XML Author Eclipse plugin requires a schema to be associated with the
XML document. The schema specifies how the internal structure of the XML is defined.
Supported Types of Schema
The following schema types are supported:
- W3C XML Schema 1.0 and 1.1 (with and without embedded Schematron rules) - The
association with an XML Schema is added as an attribute of the root element with one of
the following:
@xsi:schemaLocation attribute, if the root element of the document
is in the namespace.
@xsi:noNamespaceSchemaLocation attribute, if the root element is
not in the namespace.
- DTD - The association with a DTD is added as a
DOCTYPE
declaration.
- Relax NG - XML Syntax (with and without embedded Schematron rules) - The
association is added as an xml-model processing instruction.
- Relax NG - Compact Syntax - The association is added as an xml-model processing instruction.
- NVDL - The association is added as an xml-model processing instruction.
- Schematron (both ISO Schematron and Schematron 1.5) - The association is added
as an xml-model processing instruction.
Detecting the Schema(s) for Validation
Detecting a Schema for Content Completion