<!--
  This is the DTD for a custom integration of DocBook V4.2, MathML 2.0,
  and SVG 1.1.
  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 SVG1.1 V1//EN"

  and this formal system identifier:

    "dbmathmlsvg-sabi1.dtd"

  For example in this 'DOCTYPE' declaration:

    <!DOCTYPE article
      PUBLIC "-//IDN sabi.co.UK/DTD DocBook XML V4.2-Based Extension MathML 2.0 SVG 1.1 V1//EN"
      "dbmathmlsvg-sabi1.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 SVG 1.1 V1//EN"
      "dbmathmlsvg-sabi1.dtd">
    %DocBookMathML;
-->

<!-- Suppress the imageobject declaration -->
<!ENTITY % imageobject.element                  "IGNORE">

<!ENTITY % docbook.mathml.equation.content      "INCLUDE">
<!ENTITY % docbook.svg.imageobject.element      "INCLUDE">

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

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

<!ENTITY % NS.prefixed     "INCLUDE">
<!ENTITY % MATHML.prefix   "%mathml-prefix;">
<!ENTITY % NamespaceDecl.attrib "
	xmlns:mml	CDATA	#FIXED 'http://www.w3.org/1998/Math/MathML'
">

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

<!-- Include the SVG DTD with prefix -->
<!ENTITY % NS.prefixed "INCLUDE" >
<!ENTITY % SVG.prefix "svg">

<!ENTITY % svg.dtd
  PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
%svg.dtd;

<![%docbook.svg.imageobject.element;[
<!ELEMENT imageobject (objectinfo?, (imagedata|%SVG.svg.qname;))>
]]>

<!-- 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;
