<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

    Author: Masayasu Ishikawa (mimasa@w3.org)
    $Id: xhtml2-math-svg-egix.rng,v 1.2 2003/03/18 09:53:07 mimasa Exp $
  </a:documentation>

  <include href="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>

</grammar>
