<?xml version="1.0" encoding="UTF-8"?>
<!--
(c) International Organization for Standardization 2005.
Permission to copy in any form is granted for use with conforming
SGML systems and applications as defined in ISO 8879,
provided this notice is included in all copies.
-->
<grammar ns="http://purl.oclc.org/dsdl/schematron" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<start>
<ref name="schema"/>
</start>
<!-- Element declarations -->
<define name="schema">
<element name="schema">
<optional>
<attribute name="id">
<data type="ID"/>
</attribute>
</optional>
<ref name="rich"/>
<optional>
<attribute name="schemaVersion">
<ref name="non-empty-string"/>
</attribute>
</optional>
<optional>
<attribute name="defaultPhase">
<data type="IDREF"/>
</attribute>
</optional>
<optional>
<attribute name="queryBinding">
<ref name="non-empty-string"/>
</attribute>
</optional>
<interleave>
<ref name="foreign"/>
<zeroOrMore>
<ref name="inclusion"/>
</zeroOrMore>
<group>
<optional>
<ref name="title"/>
</optional>
<zeroOrMore>
<ref name="ns"/>
</zeroOrMore>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="let"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phase"/>
</zeroOrMore>
<oneOrMore>
<ref name="pattern"/>
</oneOrMore>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<optional>
<ref name="diagnostics"/>
</optional>
</group>
</interleave>
</element>
</define>
<define name="active">
<element name="active">
<attribute name="pattern">
<data type="IDREF"/>
</attribute>
<interleave>
<ref name="foreign"/>
<zeroOrMore>
<choice>
<text/>
<ref name="dir"/>
<ref name="emph"/>
<ref name="span"/>
</choice>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="assert">
<element name="assert">
<attribute name="test">
<ref name="exprValue"/>
</attribute>
<optional>
<attribute name="flag">
<ref name="flagValue"/>
</attribute>
</optional>
<optional>
<attribute name="id">
<data type="ID"/>
</attribute>
</optional>
<optional>
<attribute name="diagnostics">
<data type="IDREFS"/>
</attribute>
</optional>
<ref name="rich"/>
<ref name="linkable"/>
<interleave>
<ref name="foreign"/>
<zeroOrMore>
<choice>
<text/>
<ref name="name"/>
<ref name="value-of"/>
<ref name="emph"/>
<ref name="dir"/>
<ref name="span"/>
</choice>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="diagnostic">
<element name="diagnostic">
<attribute name="id">
<data type="ID"/>
</attribute>
<ref name="rich"/>
<interleave>
<ref name="foreign"/>
<zeroOrMore>
<choice>
<text/>
<ref name="value-of"/>
<ref name="emph"/>
<ref name="dir"/>
<ref name="span"/>
</choice>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="diagnostics">
<element name="diagnostics">
<interleave>
<ref name="foreign"/>
<zeroOrMore>
<ref name="inclusion"/>
</zeroOrMore>
<zeroOrMore>
<ref name="diagnostic"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="dir">
<element name="dir">
<optional>
<attribute name="value">
<choice>
<value>ltr</value>
<value>rtl</value>
</choice>
</attribute>
</optional>
<interleave>
<ref name="foreign"/>
<text/>
</interleave>
</element>
</define>
<define name="emph">
<element name="emph">
<text/>
</element>
</define>
<define name="extends">
<element name="extends">
<attribute name="rule">
<data type="IDREF"/>
</attribute>
<ref name="foreign-empty"/>
</element>
</define>
<define name="let">
<element name="let">
<attribute name="name">
<ref name="nameValue"/>
</attribute>
<attribute name="value">
<data type="string" datatypeLibrary=""/>
</attribute>
</element>
</define>
<define name="name">
<element name="name">
<optional>
<attribute name="path">
<ref name="pathValue"/>
</attribute>
</optional>
<ref name="foreign-empty"/>
</element>
</define>
<define name="ns">
<element name="ns">
<attribute name="uri">
<ref name="uriValue"/>
</attribute>
<attribute name="prefix">
<ref name="nameValue"/>
</attribute>
<ref name="foreign-empty"/>
</element>
</define>
<define name="p">
<element name="p">
<optional>
<attribute name="id">
<data type="ID"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<ref name="classValue"/>
</attribute>
</optional>
<optional>
<attribute name="icon">
<ref name="uriValue"/>
</attribute>
</optional>
<interleave>
<ref name="foreign"/>
<zeroOrMore>
<choice>
<text/>
<ref name="dir"/>
<ref name="emph"/>
<ref name="span"/>
</choice>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="param">
<element name="param">
<attribute name="name">
<ref name="nameValue"/>
</attribute>
<attribute name="value">
<ref name="non-empty-string"/>
</attribute>
</element>
</define>
<define name="pattern">
<element name="pattern">
<ref name="rich"/>
<interleave>
<ref name="foreign"/>
<zeroOrMore>
<ref name="inclusion"/>
</zeroOrMore>
<choice>
<group>
<attribute name="abstract">
<value>true</value>
</attribute>
<attribute name="id">
<data type="ID"/>
</attribute>
<optional>
<ref name="title"/>
</optional>
<group>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="let"/>
</zeroOrMore>
<zeroOrMore>
<ref name="rule"/>
</zeroOrMore>
</group>
</group>
<group>
<optional>
<attribute name="abstract">
<value>false</value>
</attribute>
</optional>
<optional>
<attribute name="id">
<data type="ID"/>
</attribute>
</optional>
<optional>
<ref name="title"/>
</optional>
<group>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="let"/>
</zeroOrMore>
<zeroOrMore>
<ref name="rule"/>
</zeroOrMore>
</group>
</group>
<group>
<optional>
<attribute name="abstract">
<value>false</value>
</attribute>
</optional>
<attribute name="is-a">
<data type="IDREF"/>
</attribute>
<optional>
<attribute name="id">
<data type="ID"/>
</attribute>
</optional>
<optional>
<ref name="title"/>
</optional>
<group>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="param"/>
</zeroOrMore>
</group>
</group>
</choice>
</interleave>
</element>
</define>
<define name="phase">
Loading ...