Normal users are not supposed to do this. The intended audience for this appendix is consultants and local gurus. |
What follows is a description of what has been done to integrate MathML with DocBook 5. Integrating MathML with other document types should be very similar.
File
contains these additional configuration elements in XMLmind XML Editor - Configuration and Deployment:mathml_addon_install_dir
/docbook5/mathml_support.incl
<configuration xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:db="http://docbook.org/ns/docbook" xmlns:mml="http://www.w3.org/1998/Math/MathML"> <validate namespace="http://www.w3.org/1998/Math/MathML"><relaxng location="../common_rng/mathml2.rng" /> </validate> <include location="../common/mathml.incl" />
...
Extend the DocBook menu and toolbar here
... <elementTemplate name="mathml"><equation xmlns="http://docbook.org/ns/docbook"> <title></title> <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="block"> <mml:mi></mml:mi> </mml:math> </equation> </elementTemplate> </configuration>
Dynamically merge the RELAX NG schema of MathML presentation markup ( | ||||
Include the MathML configuration. | ||||
Among other extensions, specify one or more templates for elements embedding MathML elements.
|
The above file is referenced in the stock DocBook 5 configuration (
) as follows:XXE_install_dir
/addon/config/docbook5/docbook5.xxe
<!-- Do not report an error if the "MathML support" add-on has not been installed. --> <include location="---mathml-config:docbook5/mathml_support.incl
" />
The " | |
URL <rewriteURI uriStartString="mathml-config:" rewritePrefix="." /> |
File
contains the following additional CSS rules:mathml_addon_install_dir
/docbook5/mathml_support.imp
@import url(../common/mathml.css);@namespace db5 "http://docbook.org/ns/docbook"; db5|imagedata:contains-element(mml|math),
db5|inlineequation > mml|math, db5|informalequation > mml|math, db5|equation > mml|math { content: ""; }
The above file is referenced in the stock DocBook 5 CSS stylesheet (
) as follows:XXE_install_dir
/addon/config/docbook5/css/docbook5.css
/* Do not report an error if the "MathML support" add-on
has not been installed. */
@import url(---mathml-config:docbook5/mathml_support.imp);