sch:schema

The top-level element of a Schematron schema.

Element Information

Model

((ANY element from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron' | ANY element from LOCAL namespace 'No Namespace')) | sch:include | sch:extends | sch:title | sch:ns | sch:p | sch:let | sch:phase | sch:pattern | sch:diagnostics

Attributes

QName Type Fixed Default Use Inheritable Annotation
defaultPhase xs:IDREF optional
The defaultPhase attribute may be used to indicate the phase to use in
the absence of explicit user-supplied information.
fpi sch:fpiValue optional
A formal public identifier for the schema, phase or other element.
icon sch:uriValue optional
The location of a graphics file containing some visible representation of
the severity, significance or other grouping of the associated element.
id xs:ID optional
This attribute enables unique identification of the element. According
to XML specification the value of an attribute of ID type can contain only characters
permitted for NMTOKEN and must start with a letter. No element type may have more than
one ID attribute specified. The value of an ID attribute must be unique between all
values of all ID attributes.
queryBinding sch:non-empty-string optional
The optional queryBinding attribute provides the short name of the query
language binding in use. If this attribute is specified, it is an error if it has a
value that the current implementation does not support.
schemaVersion sch:non-empty-string optional
The optional schemaVersion attribute gives the version of the schema.
Its allowed values are not defined by this part of ISO/IEC 19757 and its use is
implementation-dependent.
see sch:uriValue optional
The URI of external information of interest to maintainers and users of
the schema.
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.
xml:space restriction of xs:NCName optional
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'

Source

<xs:element name="schema">
  <xs:annotation>
    <xs:documentation>The top-level element of a Schematron schema.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:group ref="sch:foreign"/>
      <xs:element ref="sch:include"/>
      <xs:element ref="sch:extends"/>
      <xs:element ref="sch:title"/>
      <xs:element ref="sch:ns"/>
      <xs:element ref="sch:p"/>
      <xs:element ref="sch:let"/>
      <xs:element ref="sch:phase"/>
      <xs:element ref="sch:pattern"/>
      <xs:element ref="sch:diagnostics"/>
    </xs:choice>
    <xs:attribute name="id" type="xs:ID">
      <xs:annotation>
        <xs:documentation>This attribute enables unique identification of the element. According to XML specification the value of an attribute of ID type can contain only characters permitted for NMTOKEN and must start with a letter. No element type may have more than one ID attribute specified. The value of an ID attribute must be unique between all values of all ID attributes.</xs:documentation>
      </xs:annotation>