Dear all,

referring to an older answer the setup being given at
http://www.mail-archive.com/xmleditor-support%40xmlmind.com/msg04583.html
describes MathML Docbook5 PDF support by converting mml to svg and
subsequently using RenderX's xep svg capabilities.

This setup works for xmlmind 6.4 apart from a very small failure.

Extracting docbook equations yields correct mathml exports being
transformed into individual svg images. However the <svg> root
elements do not carry any namespace attribute:

<svg fill-opacity="1" ... , but no xmlns="http://www.w3.org/2000/svg";
whatsoever, resulting in an xep Exception:

xxetool: error: XEP error: Failed to create image
file:/tmp/xxe1997919912855643128_d/resources/fig_tmp_0.svg of type
null (com.renderx.graphics.ImageFormatException:
org.xml.sax.SAXException: Root element in an SVG image
file:/tmp/xxe1997919912855643128_d/resources/fig_tmp_0.svg is not in
the SVG namespace (http://www.w3.org/2000/svg))

After executing xxetool with "-d" option I added the missing xmlns
attribute by editing fig_tmp_0.svg manually. A subsequent execution of
xep on __doc.fo gives the desired PDF result. I've however no clue at
all how to convince the mml --> svg conversion process to provide the
required namespace on its own. All parameters I've found so far below
http://www.xmlmind.com/xmleditor/addons_doc.html#jeuclid_imagetoolkit
are totally unrelated to namespace considerations.

Martin Goik
-- 
Martin Goik  Tel.  +49-711-8923-2164  http://www.HdM-Stuttgart.de/~goik
GnuPG public key: https://www.hdm-stuttgart.de/~goik/goik.asc

Wherever there is a man who exercises authority,
there is a man who resists authority.                   Oscar Wilde

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to