The xml-model processing instruction associates a schema with the XML
document that contains the processing instruction. It must be added at the beginning of
the document, just after the XML prologue. The following code snippet contains an
xml-model processing instruction declaration:
<?xml-model href="../schema.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron" phase="ALL" title="Main schema"?>
It is available in the Content Completion Assistant, before XML document root element, and
includes the following attributes:
- href (required) - The schema file location.
- type - The content type of the schema. This is an optional
attribute with the following possible values for each specified type:
- DTD - The recommended value is application/xml-dtd.
- W3C XML Schema - The recommended value is application/xml, or can be
left unspecified.
- RELAX NG XML Syntax - The recommended value is application/xml, or
can be left unspecified.
- RELAX NG Compact Syntax - The recommended value is
application/relax-ng-compact-syntax.
- Schematron - The recommended value is application/xml, or can be left
unspecified.
- NVDL - The recommended value is application/xml, or can be left
unspecified.
- schematypens - The namespace for the schema language of the
referenced schema with the following possible values:
- DTD - Not specified.
- W3C XML Schema - The recommended value is
http://www.w3.org/2001/XMLSchema.
- RELAX NG XML Syntax - The recommended value is
http://relaxng.org/ns/structure/1.0.
- RELAX NG Compact Syntax - Not specified.
- Schematron - The recommended value is
http://purl.oclc.org/dsdl/schematron.
- NVDL - The recommended value is
http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0.
- phase - The phase name for the validation function in Schematron
schema. This is an optional attribute. To run all phases from the Schematron, use the
special #ALL value. If the phase is not specified, the default phase
that is configured in the Schematron will be applied.
- title - The title for the associated schema. This is an optional
attribute.
Older versions of Oxygen XML Editor used the oxygen processing instruction
with the following attributes:
- RNGSchema - Specifies the path to the Relax NG schema that is
associated with the current document.
- type - Specifies the type of Relax NG schema. It is used along with
the RNGSchema attribute and can have the value xml
or compact.
- NVDLSchema - Specifies the path to the NVDL schema that is
associated with the current document.
- SCHSchema - Specifies the path to the SCH schema that is associated
with the current document.
Note: Documents that use the oxygen processing instruction are compatible
with newer versions of Oxygen XML Editor.