ZVON > References > Schematron reference
Element rule
Description context selects relevant nodes from the source. report and assert then test relative to this context.
Attributes
abstract If its value is "true", the context of the rule can be incorporated into other rules.
context This attribute selects relevant nodes for the given rule.
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.
role This is an identifier within the schema to identify the role that is played.
Children assert, report, key, extends
Parents pattern
DTD
<!ELEMENT rule ( assert | report | key | extends )+>
<!ATTLIST rule
             context %PATH; #IMPLIED
             abstract (true | false) "false"
             role NMTOKEN #IMPLIED
             id ID #IMPLIED>

Examples
Example 1 A simple example
Example 2 Abstract rules and see attribute



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet