sch:schema
The top-level element of a Schematron schema.
Element information
Namespace: http://purl.oclc.org/dsdl/schematron
Schema document: schematron.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Choice [0..*]
- Any element Namespace: ##other, Process Contents: skip
- Any element Namespace: ##local, Process Contents: skip
- sch:include The required href attribute references an external well-formed XML document whose document element is a Schematron element of a type which is allowed by the grammar for Schematron at the current position in the schema. The external document is inserted in place of the include element.
- sch:title A summary of the purpose or role of the schema or pattern, for the purpose of documentation or a rich user interface.
- sch:ns Specification of a namespace prefix and URI.
- sch:p A paragraph of natural language text containing maintainer and user information about the parent element. The schema can nominate paragraphs that should be rendered in a distinct way, keyed with the class attribute.
- sch:let A declaration of a named variable.
- sch:phase A grouping of patterns, to name and declare variations in schemas, for example, to support progressive validation.
- sch:pattern A structure, simple or complex. A set of rules giving constraints that are in some way related.
- sch:diagnostics A section containing individual diagnostic elements.
from group sch:foreign-element
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
id | [0..1] | xsd:ID | ||
see | [0..1] | sch:uriValue | A name describing the function of the assertion or context node in the pattern. If the assertion has a subject attribute, then the role labels the arc between the context node and any nodes which match the path expression given by the subject attribute. | from group sch:rich |
fpi | [0..1] | sch:fpiValue | A formal public identifier for the schema, phase or other element. | from group sch:rich |
xml:lang | [0..1] | Anonymous | from group sch:rich | |
xml:space | [0..1] | Anonymous | from group sch:rich | |
schemaVersion | [0..1] | sch:non-empty-string | The version of the schema. Its allowed values are not defined by this part of ISO/IEC 19757 and its use is implementation-dependent. | |
defaultPhase | [0..1] | xsd:IDREF | The phase to use in the absence of explicit user-supplied information | |
queryBinding | [0..1] | sch:non-empty-string | The short name of the query language binding in use. | |
Any attribute | [0..*] | Namespace: ##other, Process Contents: skip | from group sch:foreign-attributes | |
Any attribute | [0..*] | Namespace: ##local, Process Contents: skip | from group sch:foreign-attributes |
Sample instance
<sch:schema> <!--any element--> </sch:schema>