<grammar xmlns="http://relaxng.org/ns/structure/1.0"
         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">

  <a:documentation>
    An experimental RELAX NG schema for XHTML 2.0 + MathML 2.0 + SVG 1.1
    + EGIX + XML Character Entities

    Author: Masayasu Ishikawa (mimasa@w3.org)
    $Id: xhtml2-math-svg-egix-xmlcharent.rng,v 1.5 2005/10/13 13:35:30 mimasa Exp $
  </a:documentation>

  <include href="http://www.w3.org/MarkUp/RELAXNG/xhtml2.rng" ns="http://www.w3.org/2002/06/xhtml2/"/>

  <define name="Common.extra.attrib" combine="interleave">
    <a:documentation>
      Allow "name" attribute from EGIX as Common attribute
    </a:documentation>

    <optional>
      <attribute name="name" ns="http://www.xml.gr.jp/PRE/Reference"/>
    </optional>
  </define>

  <a:documentation>
    Allow MathML and SVG at both block and inline level
  </a:documentation>

  <define name="Misc.class" combine="choice">
    <externalRef href="mathml2.rng" ns="http://www.w3.org/1998/Math/MathML"/>
  </define>

  <define name="Misc.class" combine="choice">
    <externalRef href="svg11/svg11.rng" ns="http://www.w3.org/2000/svg"/>
  </define>

  <a:documentation>
    Allow XML Character Entities at inline level
  </a:documentation>

  <define name="Text.class" combine="choice">
    <externalRef href="xmlcharent.rng"
                 ns="http://www.oasis-open.org/docbook/xmlcharent/names"/>
  </define>

</grammar>
