Top Description Methods
uk.ac.ed.ph.snuggletex

public Interface DOMPostProcessor

Known Direct Implementers
uk.ac.ed.ph.snuggletex.DownConvertingPostProcessor, uk.ac.ed.ph.snuggletex.utilities.MathMLPostProcessor
Imports
uk.ac.ed.ph.snuggletex.utilities.StylesheetManager, org.w3c.dom.Document

This interface allows you to hook into the SnuggleTeX process immediately after the raw DOM tree has been built. By implementing this interface, you may make modifications to the DOM to suit your needs.
Author
David McKain
Version
$Revision$
See Also
DownConvertingPostProcessor

Method Summary

Modifier and TypeMethod and Description
public Document
postProcessDOM(final Document
incoming DOM to be analysed for post-processing
workDocument
,
final DOMOutputOptions
DOMOutputOptions specified by caller
options
,
StylesheetManager
Instance of StylesheetManager that can be used to load and manage XSLT stylesheets.
stylesheetManager
)

Implement this to post-process the raw DOM produced by SnuggleTeX.

Method Detail

postProcessDOMback to summary
public Document postProcessDOM(final Document workDocument, final DOMOutputOptions options, StylesheetManager stylesheetManager)

Implement this to post-process the raw DOM produced by SnuggleTeX.

You will be given an entire DOM Document to analyse, containing a root element called root in the SnuggleConstants#SNUGGLETEX_NAMESPACE namespace.

You should create a new Document and return it. The children of the root element will end up being the Nodes added to the final DOM.

You MUST NOT modify the workDocument that is passed to you.

Parameters
workDocument:Document

incoming DOM to be analysed for post-processing

options:DOMOutputOptions

DOMOutputOptions specified by caller

stylesheetManager:StylesheetManager

Instance of StylesheetManager that can be used to load and manage XSLT stylesheets.