ZVON > References > Schematron reference
Element pattern
Description Rules are grouped into pattern elements. A pattern is a grouping of rules. Inside a pattern there must not be two or more rules with the same context, rules can have the same context if they are in different patterns.
Attributes
icon An URL of a small image which may provide visual clues to a user.
id 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.
name Human readable name of the pattern.
see The see attribute allows to specify an URL of some human readable documentation for the pattern; a hypertext presentation of the schema results can link to that resource.
Children p, rule
Parents schema
DTD
<!ELEMENT pattern ( p*, rule+ )>
<!ATTLIST pattern
             name CDATA #REQUIRED
             see CDATA #IMPLIED
             id ID #IMPLIED
             icon CDATA #IMPLIED>

Examples
Example 1 A simple example
Example 2 A schema with several patterns



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet