Top Description Constructors Methods
uk.ac.ed.ph.snuggletex.upconversion.samples

public Class ASCIIMathMLUpConversionExample

extends Object
Class Inheritance
Imports
org.w3c.dom.Document, org.xml.sax.InputSource, .SAXException, uk.ac.ed.ph.snuggletex.DOMOutputOptions, .SnuggleRuntimeException, uk.ac.ed.ph.snuggletex.upconversion.MathMLUpConverter, .UpConversionOptionDefinitions, .UpConversionOptions, .UpConvertingPostProcessor, uk.ac.ed.ph.snuggletex.utilities.MathMLUtilities, .UnwrappedParallelMathMLDOM, javax.xml.parsers.DocumentBuilder, .DocumentBuilderFactory, .ParserConfigurationException, javax.xml.transform.TransformerFactory, java.io.IOException, .StringReader

Simple demonstration of how to use some of the utilities within SnuggleTeX to up-convert some raw MathML extracted from ASCIIMathML.

(You can do the same with the raw MathML produced by SnuggleTeX as well; you just have to call a MathMLUpConverter#upConvertSnuggleTeXMathML(Document, UpConversionOptions)) instead of the method for SnuggleTeX. When using SnuggleTeX normally, all of this can be invoked during the snuggling process by adding a UpConvertingPostProcessor to the List returned by DOMOutputOptions#getDOMPostProcessors().)

Running Notes

You will need the following in your ClassPath: If you're already using XSLT 1.0 in your application and don't want your existing XSLT to run using SAXON (which is hard to justify, IMO, as SAXON is superior to other XSLT processors in most respects) then you might find that SAXON becomes your JAXP default processor, which you can override as you require as it is invoked here explicitly, rather than using TransformerFactory#newInstance().
Author
David McKain
Since
1.1.0
Version
$Revision$

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ASCIIMathMLUpConversionExampleback to summary
public ASCIIMathMLUpConversionExample()

Method Detail

mainback to summary
public static void main(String[] args)