ZVON > References > Schematron reference
Element schema
Description schema is the root element of Schematron. This element contains declaration of Schematron namespace (usually xmlns:sch="http://www.ascc.net/xml/schematron").
Attributes
defaultPhase This attribute gives the name of the phase to be used. It can be overriden by supplying the name of the required phase to the application.
fpi The optional attribute fpi is an SGML-style Formal Public Identifier
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.
version The version of Schematron the schema is conforming to.
Children diagnostics, ns, p, pattern, phase, title
DTD
<!ELEMENT schema ( title?, ns*, phase*, 
                      p*, pattern+ , p*, 
                      diagnostics? )>
<!ATTLIST schema
             id ID #IMPLIED
             fpi CDATA; #IMPLIED
             schemaVersion CDATA #IMPLIED
             defaultPhase IDREF #IMPLIED
             icon CDATA #IMPLIED
             version CDATA "1.5"
             xml:lang NMTOKEN #IMPLIED>

Examples
Example 1 A simple example
Example 2 A schema with several patterns
Example 3 A schema for RDF by Rick Jelliffe



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet