cx:mathml-to-svg — Convert MathML to SVG.


<p:declare-step type="cx:mathml-to-svg" xmlns:cx="">
     <p:input port="source" sequence="false"/>
     <p:input port="parameters" kind="parameter"/>
     <p:output port="result" sequence="false"/>

Introduced in XML Calabash version 1.0.25.


This step is a wrapper for the JEuclid library. It converts MathML markup to SVG.

The following parameters are recognized: antialias, antialias-minsize, debug, display, fonts-doublestruck, fonts-fraktur, fonts-monospaced, fonts-sansserif, fonts-script, fonts-serif, mathbackground, mathcolor, mathsize, mfrac-keep-scriptlevel, scriptlevel, scriptminsize, scriptsizemultiplie. They map to the underlying JEuclid parameters in the obvious way. The string value specified for each parameter is interpreted directly by JEuclid through the fromString method.

Here's an example:

<math xmlns="">

Running this through cx:mathml-to-svg with a “mathsize” parameter of “25f” produces:

(Assuming your user agent can display SVG.)

The cx:mathml-to-svg step is often used in a p:viewport, for example:

<p:viewport match="mml:*">
    <p:input port="parameters">
    <p:with-param name="mathsize" select="'25f'"/>


This step is implemented by the xmlcalabash1-mathml-to-svg module. The jar file from that project must be in the class path in order to use this step.


This product includes software developed by JEulid (