<!--
  This is the DTD for a custom integration of DocBook V4.2 and MathML 2.0.
  It was inspired by the OASIS DTD for DocBook V4.1.2 and MathML 2.0
  integration.

  Use the following formal public identifier to refer to this DTD:

    "-//IDN sabi.co.UK/DTD DocBook XML V4.2-Based Extension MathML 2.0 V3//EN"

  and this formal system identifier:

    "dbmathml-sabi3.dtd"

  For example in this 'DOCTYPE' declaration:

    <!DOCTYPE book
      PUBLIC "-//IDN sabi.co.UK/DTD DocBook XML V4.2-Based Extension MathML 2.0 V3//EN"
      "dbmathml-sabi3.dtd"
    [...]>

  If you have a DocBook customization, you can use something like
  this parameter entity declaration:

    <!ENTITY % DocBookMathML
      PUBLIC "-//IDN sabi.co.UK/DTD DocBook XML V4.2-Based Extension MathML 2.0 V3//EN"
      "dbmathml-sabi3.dtd">
    %DocBookMathML;
-->

<!ENTITY % docbook.mathml.equation.content      "INCLUDE">
<!ENTITY % docbook.mathml.inlineequation.content "INCLUDE">

<!-- This is slightly different from the official V1.0 MathML embeddingi
  into DocBook V4.1.2. First of all it is an embedding into DocBook V4.2.

  Then the content model is different: we allow MathML in both 'equation'
  and 'inline equation'.
-->

<![%docbook.mathml.equation.content;[
<!ENTITY % equation.content
  "(alt?, (graphic+|mediaobject+|mml:math))">
]]>

<![%docbook.mathml.inlineequation.content;[
<!ENTITY % inlineequation.content
  "(alt?, (graphic+|inlinemediaobject+|mml:math))">
]]>

<!-- include the XHTML and MathML2 DTD with prefix -->
<!ENTITY % xhtml-prefix                         'xhtml'>
<!ENTITY % mathml-prefix                        'mml'>
<!ENTITY % mathml-colon                         ':'>

<!ENTITY % NS.prefixed                          "INCLUDE">
<!ENTITY % XHTML.prefix                         "%xhtml-prefix;" >
<!ENTITY % MATHML.prefix                        "%mathml-prefix;">

<!ENTITY % NamespaceDecl.attrib "
	xmlns:xhtml	CDATA	#FIXED 'http://www.w3.org/1999/xhtml'
	xmlns:mml	CDATA	#FIXED 'http://www.w3.org/1998/Math/MathML'
">

<!-- Include the XHMTL 1.1 DTD -->

<!ENTITY % xhtml.dtd
  PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "xhtml11-20010531/DTD/xhtml11.dtd"
>
%xhtml.dtd;

<!-- Include the MathML 2.0 DTD -->

<!ENTITY % mathml.dtd
  PUBLIC "-//W3C//DTD MathML 2.0//EN"
  "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd"
>
%mathml.dtd;

<!-- Include the DocBook DTD -->

<!ENTITY % docbook.dtd
  PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
>
%docbook.dtd;
