Thank you so much for all your help. Everything is working great. I have
some minor problems that I am working through but I think I'm good for now.

Henry


-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Wednesday, July 15, 2009 1:27 AM
To: Henry Mok
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] mathml support

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.



Reply via email to