No offense intended, but your configuration is all wrong. (But that's
normal because what you want to do is pretty advanced.)

First forget about rendering and editing MathML, just concentrate on a
customization of DocBook 4 which allows you to mix MathML math elements
with DocBook 4 elements. See
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html

Once you have such configuration working, follow what is explained in
http://www.xmlmind.com/xmleditor/_distrib/doc/mathml/integrate_mathml_with_other_doctype.html

Note that Docbook 5 is just taken as an example. Your configuration must
*not* refer to DocBook 5 or any of its files at all. Instead:

[1] Install the MathML add-on. This one is always needed.

[2] Copy <mathml_config_install_dir>/common/mathml.css to the directory
containing your customization of DocBook 4.

[3] Create a custom CSS style sheet (let's call it docbook_mathml.css)
looking like this :

---
@import url(xxe-config:docbook/css/docbook.css);
@import url(mathml.css);

imagedata:contains-element(mml|math),
inlineequation > mml|math,
informalequation > mml|math,
equation > mml|math {
    content: "";
}
---
Here we assume that your custom DTD integrates MathML the same way the
DocBook 5 RELAX NG schema does it.

[4] Copy <mathml_config_install_dir>/db5mml/rng/mathml2.rng to the
directory containing your customization of DocBook 4.

[5] Add what follows to the .xxe file specifying your customization of
DocBook 4:

---
  <css name="DocBook + MathML" location="docbook_mathml.css" />
  <validate namespace="http://www.w3.org/1998/Math/MathML";>
    <relaxng location="mathml2.rng" />
  </validate>
---


---
PS: You may want to consider purchasing 1 unit of xe-su . See
http://www.xmlmind.com/xmleditor/customization_service.html.

Note that this service is not intended to make us rich. It allows us to
solve user problems beyond what can be done by simply answering their
questions.

(If you order this support unit, we'll use the ``standard'' MathML
module -- http://docbook.org/schemas/mathml -- to extend the DocBook 4 DTD.)

---
PS 2: Even simpler, consider switching to DocBook 5! Recommended.



Henry Mok wrote:
> Hi,
> 
>  
> 
> In reference to this question, I found this page on your website.
> 
>  
> 
> http://www.xmlmind.com/xmleditor/_distrib/doc/mathml/integrate_mathml_with_other_doctype.html
> 
>  
> 
> I took the simple configuration file that I created for my custom DTD
> and applied the changes that your document suggests. The result is that
> the equations display properly but I cannot change their values. When I
> double click on them, and ?Open File? dialog box pops up. I?ve included
> the xxe configuration file that I am using. Can you tell me what I am
> doing wrong? Any help would be greatly appreciated.
> 
>  
> 
> <?xml version='1.0' encoding='ISO-8859-1'?>
> 
> <configuration name="ppidocbook_math"
> 
>   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
> 
>   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>
> 
>   <detect>
> 
>     <dtdPublicId>-//XMLmind//DTD ppidocbook_math//EN</dtdPublicId>
> 
>   </detect>
> 
>  
> 
>   <relaxng location="rng/V5.0/docbook.rng" />
> 
>   <validate namespace="http://www.w3.org/1998/Math/MathML";>
> 
>     <relaxng location="../mathml_config/db5mml/rng/mathml2.rng" />
> 
>   </validate>
> 
>  
> 
>   <include location="../mathml_config/common/mathml.incl" />
> 
>  
> 
>   <css name="Style sheet" location="css/docbook5.css" />
> 
>  
> 
> </configuration>
> 
>  
> 
>  
> 
> *From:* Henry Mok [mailto:hmok at ppi2pass.com]
> *Sent:* Wednesday, July 08, 2009 4:07 PM
> *To:* 'xmleditor-client at xmlmind.com'
> *Subject:* mathml support
> 
>  
> 
> Hi,
> 
>  
> 
> I am trying to simplify the xml editor so it can be used by people
> unfamiliar to docbook. I?ve simplified user interface and I?ve
> simplifying the dtd to only the elements that I use. Everything seems to
> be working great. The problem is that I need mathml support and the dtd
> that I am using is based on docbook 4.0.  
> 
>  
> 
> Is there any way that I can easily integrate mathml support into the dtd
> that I am using?
> 
>  
> 
> Thanks,
> 
>  
> 
> Henry
> 
> 
> ------------------------------------------------------------------------
> 
>  
> --
> XMLmind XML Editor Client Support List
> xmleditor-client at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-client



Reply via email to