BACK
HOME
MATHADOR
Example with parametric parser, pre-processor and serializer
In order to include this applet in a web page, you can use the following tag:
<applet id="mathador" code="mathador/MathApplet.class" archive="../software/mathador.jar" width="300" height="200">
<param name="mathml_dtd" value="http://put_server_host_ip_address_here/mathador/software/mathml_dtd/mathml2/mathml2.dtd"/>
<param name="source_file" value="mml/parabola.mml"/>
<param name="parser" value="mathador.parsers.MathMLParser"/>
<param name="preprocessor" value="mathador.preprocessors.MathMLPreProcessor"/>
<param name="serializer" value="mathador.serializers.MathMLSerializer"/>
</applet>
The applet tag parameters specify:
- the url of the MathML dtd,
- the MathML source file for the initial expression,
- the class name of the parser (this class must stay in the Java classpath or in the jar of the applet),
- the class name of the preprocessor (this class must stay in the Java classpath or in the jar of the applet),
- the class name of the serializer (this class must stay in the Java classpath or in the jar of the applet),
by Valentino Santucci