sch:phase

A grouping of patterns, to name and declare variations in schemas, for
example, to support progressive validation. The implementation determines which phase to use
for validating documents, for example by user command.<br/>Two names, #ALL and #DEFAULT,
have special meanings. The name #ALL is reserved and available for use by implementations to
denote that all patterns are active. The name #DEFAULT is reserved and available for use by
implementations to denote that the name given in in the defaultPhase attribute on the schema
element should be used. If no defaultPhase is specified, then all patterns are active.
NOTE:<br/>The names #ALL and #DEFAULT shall not be used in a Schematron schema. They are
for use when invoking or configuring schema validation, for example as a command-line
parameter.<br/>The icon, see and fpi attributes allow rich interfaces and documentation.

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:p | sch:let | sch:active

Attributes

QName Type Fixed Default Use Inheritable Annotation
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 required
The required id attribute is the name of the phase.
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'

Used By

Element sch:schema

Source

<xs:element name="phase">
  <xs:annotation>
    <xs:documentation>A grouping of patterns, to name and declare variations in schemas, for example, to support progressive validation. The implementation determines which phase to use for validating documents, for example by user command.
      <br/>Two names, #ALL and #DEFAULT, have special meanings. The name #ALL is reserved and available for use by implementations to denote that all patterns are active. The name #DEFAULT is reserved and available for use by implementations to denote that the name given in in the defaultPhase attribute on the schema element should be used. If no defaultPhase is specified, then all patterns are active. NOTE:
      <br/>The names #ALL and #DEFAULT shall not be used in a Schematron schema. They are for use when invoking or configuring schema validation, for example as a command-line parameter.
      <br/>The icon, see and fpi attributes allow rich interfaces and documentation.</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:p"/>
      <xs:element ref="sch:let"/>
      <xs:element ref="sch:active"/>
    </xs:choice>
    <xs:attribute name="id" use="required" type="xs:ID">
      <xs:annotation>
        <xs:documentation>The required id attribute is the name of the phase.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="sch:rich"/>
    <xs:attributeGroup ref="sch:foreign"/>
  </xs:complexType>
</xs:element>

Sample