sch:pattern

A structure, simple or complex. A set of rules giving constraints that are
in some way related. The id attribute provides a unique name for the pattern and is required
for abstract patterns.<br/>When a pattern element has the attribute abstract with a value
true, then the pattern defines an abstract pattern. An abstract pattern shall not have a
is-a attribute and shall have an id attribute.<br/>When a pattern element has the attribute
  is-a with a value specifying the name of an abstract pattern, then the pattern is an
  instance of an abstract pattern. Such a pattern shall not contain any rule elements, but
  shall have param elements for all parameters used in the abstract
pattern.

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:title | sch:p | sch:let | sch:rule | sch:param

Attributes

QName Type Fixed Default Use Inheritable Annotation
abstract restriction of xs:token false optional
If true defines an abstract pattern. Possible values are true and
false.
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
The id attribute provides a unique name for the pattern and is required
for abstract patterns.
is-a xs:IDREF optional
When a pattern element has the attribute is-a with a value specifying
the name of an abstract pattern, then the pattern is an instance of an abstract pattern.
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="pattern">
  <xs:annotation>
    <xs:documentation>A structure, simple or complex. A set of rules giving constraints that are in some way related. The id attribute provides a unique name for the pattern and is required for abstract patterns.
      <br/>When a pattern element has the attribute abstract with a value true, then the pattern defines an abstract pattern. An abstract pattern shall not have a is-a attribute and shall have an id attribute.
      <br/>When a pattern element has the attribute is-a with a value specifying the name of an abstract pattern, then the pattern is an instance of an abstract pattern. Such a pattern shall not contain any rule elements, but shall have param elements for all parameters used in the abstract pattern.</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:title"/>
      <xs:element ref="sch:p"/>
      <xs:element ref="sch:let"/>
      <xs:element ref="sch:rule"/>
      <xs:element ref="sch:param"/>
    </xs:choice>
    <xs:attributeGroup ref="sch:rich"/>
    <xs:attributeGroup ref="sch:foreign"/>
    <xs:attribute name="abstract" default="false">
      <xs:annotation>
        <xs:documentation>If true defines an abstract pattern. Possible values are true and false.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="true">
            <xs:annotation>
              <xs:documentation>Defines an abstract pattern.