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. |
QName | Type | Fixed | Default | Use | Inheritable | Annotation | |
---|---|---|---|---|---|---|---|
abstract | restriction of xs:token | false | optional |
|
|||
fpi | sch:fpiValue | optional |
|
||||
icon | sch:uriValue | optional |
|
||||
id | xs:ID | optional |
|
||||
is-a | xs:IDREF | optional |
|
||||
see | sch:uriValue | optional |
|
||||
xml:lang | union of(xs:language, restriction of xs:string) | optional |
|
||||
xml:space | restriction of xs:NCName | optional | |||||
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron' |
Element | sch:schema |
<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. |