sch:pattern
A structure, simple or complex. A set of rules giving constraints that are in some way related.
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: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:rule A list of assertions tested within the context specified by the required context attribute.
- sch:param A name-value pair providing parameters for an abstract pattern.
from group sch:foreign-element
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
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 | |
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 | |
abstract | [0..1] | Anonymous | 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. | |
id | [0..1] | xsd:ID | A unique name for the pattern and is required for abstract patterns. | |
is-a | [0..1] | xsd:IDREF | 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. |
Used in
- Anonymous type of element sch:schema
Sample instance
<sch:pattern> <!--any element--> </sch:pattern>