public final class MathMLDownConverter extends Object
Document so that simple MathML expressions
are replaced by XHTML + CSS alternatives.
More complex MathML expressions are left as-is.
This can be used independently of SnuggleTeX if required; you may want to instantiate and
provide your own StylesheetCache in this case if you already do things with XSLT.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MathMLDownConverter.CSSPropertiesURIResolver
Trivial
URIResolver that returns an XML Document corresponding to
the current session's CSS Properties when the URI
Globals.CSS_PROPERTIES_DOCUMENT_URN is used. |
| Constructor and Description |
|---|
MathMLDownConverter() |
MathMLDownConverter(Properties cssProperties) |
MathMLDownConverter(StylesheetCache stylesheetCache) |
MathMLDownConverter(StylesheetManager stylesheetManager,
DOMOutputOptions options)
Creates a new
MathMLDownConverter which will inline CSS properties if specified by
the given DOMOutputOptions. |
MathMLDownConverter(StylesheetManager stylesheetManager,
Properties cssProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildCSSPropertiesDocument(Document result,
Properties cssProperties)
Converts the CSS Properties specified within the
DOMOutputOptions into an XML
document of the form:
<properties xmlns="http;//www.ph.ed.ac.uk/snuggletex">
<property name="..." value="..." |
Document |
downConvertDOM(Document document) |
public MathMLDownConverter()
public MathMLDownConverter(Properties cssProperties)
public MathMLDownConverter(StylesheetCache stylesheetCache)
public MathMLDownConverter(StylesheetManager stylesheetManager, DOMOutputOptions options)
MathMLDownConverter which will inline CSS properties if specified by
the given DOMOutputOptions.stylesheetManager - options - public MathMLDownConverter(StylesheetManager stylesheetManager, Properties cssProperties)
public void buildCSSPropertiesDocument(Document result, Properties cssProperties)
DOMOutputOptions into an XML
document of the form:
<properties xmlns="http;//www.ph.ed.ac.uk/snuggletex"> <property name="..." value="..."/> ... </properties>
Copyright © 2008–2026 The University of Edinburgh. All rights reserved.