MathML namespace prefix

benwem
Posts: 4
Joined: Fri Sep 25, 2009 5:16 pm

MathML namespace prefix

Post by benwem » Fri Jan 04, 2013 5:20 pm

When creating a new Dita document of type "Composite with MATHML", the namespace prefix for MathML is "mml:". How can I change this in "m:"?

Radu
Posts: 6398
Joined: Fri Jul 09, 2004 5:18 pm

Re: MathML namespace prefix

Post by Radu » Fri Jan 04, 2013 6:08 pm

Hi,

The new file template for creating a DITA composite + MathML can be modified from:

OXYGEN_INSTALL_DIR\frameworks\dita\templates\topic\Composite with MathML.dita

But:

The template uses a specialization DTD for validation and DTDs are not namespace aware.
So you should also edit the DTD:

OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/mathml/dtd/mathmlDomain2.mod

and replace in it in three places "mml" with "m".

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply