Henry Mok wrote:
> Thank you for your help. I used your simplified DocBook example as a model
> to create my own custom configuration. Then I followed your steps and I was
> able to successfully integrate mathml. It looks great but I do have an
> issue. When I insert an equation, the xml that is created is
>
> <equation>
> <para></para>
> </equation>
>
> In DocBook 5, I can insert equation(mathml) which creates
>
> <equation>
> <title></title>
>
> <m:math display="block">
> <m:mi></m:mi>
> </m:math>
> </equation>
>
> How do I change the equation in my custom configuration to generate what the
> equation(mathml) is generating in DocBook 5? I found your documentation on
> elementTemplate but I haven't been able to figure it out.
>
Please add this configuration element to your configuration (.xxe) file:
---
<elementTemplate name="mathml" selectable="override">
<equation xmlns="">
<title></title>
<m:math display="block"
xmlns:m="http://www.w3.org/1998/Math/MathML">
<m:mi></m:mi>
</m:math>
</equation>
</elementTemplate>
---
(A description of selectable="override" is found in
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/elementTemplate.html)
Note that what is suggested above assumes that:
[1] The default namespace of your configuration file is
"http://www.xmlmind.com/xmleditor/schema/configuration". If this is not
the case, please use <cfg:elementTemplate
xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration">
instead of <elementTemplate
xmlns="http://www.xmlmind.com/xmleditor/schema/configuration">.
[2] Your variant of the DocBook 4 DTD actually allows an m:math element
as a child of an equation element. If this is not the case, the above
element template will never be used.