UpConvertingPostProcessor to the List returned by
DOMOutputOptions#getDOMPostProcessors().
Document to
UpConversionUtilities#extractUpConversionFailures(Document), to get a List
of UpConversionFailure Objects that can be inspected further.
StylesheetCache to integrate with your own caching mechanism.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | ASCIIMATH_FIXER_XSL_LOCATION
Location of the initial XSLT for fixing up ASCIIMathML |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private final StylesheetManager | stylesheetManager
Helper to manage the |
| private static final String | UPCONVERTER_BASE_LOCATION
"Base" location for the XSLT stylesheets used here |
| private static final String | UPCONVERTER_XSL_LOCATION
Location of the main up-converting XSLT |
| Access | Constructor and Description |
|---|---|
| public | MathMLUpConverter()
Creates a new up-converter using a simple internal cache, hard-coded to use Saxon for XSLT 2.0 support. |
| public | MathMLUpConverter(StylesheetCache stylesheetCache)
Creates a new up-converter using the given |
| public | MathMLUpConverter(final TransformerFactoryChooser
TransformerFactoryChooser to use, which must not
be null.StylesheetCache to use, which may be null to avoid caching.Creates a new up-converter using the given |
| public | MathMLUpConverter(StylesheetManager stylesheetManager)
Creates a new up-converter using the given |
| Modifier and Type | Method and Description |
|---|---|
| private Element | createUpConversionOptionsElement(final UpConversionOptions upConversionOptions)
DEVELOPER NOTE: I have included the default value for this parameter within the XSLT as well so that people can reuse it easier in a standalone fashion. |
| public Document | upConvertASCIIMathML(final Document
DOM asciiMathMLDocument, final UpConversionOptions Document, assumed to have been generated by
ASCIIMathMLUpConversionOptions to use, or null to
use defaults.Up-converts the ASCIIMathML output represented by the given |
| public Document | upConvertASCIIMathML(final String
ASCIIMathML output string rawASCIIMathML, final UpConversionOptions UpConversionOptions to use, or null to
use defaults.Convenience version of |
| public Document | upConvertSnuggleTeXMathML(final Document
DOM document, final UpConversionOptions Document, assumed to have been generated by
SnuggleSession#buildDOMSubtree() or similar.UpConversionOptions to use, or null to
use defaults.Up-converts the SnuggleTeX XHTML output Document (assumed to contain islands of MathML),
creating a new result |
| ASCIIMATH_FIXER_XSL_LOCATION | back to summary |
|---|---|
| private static final String ASCIIMATH_FIXER_XSL_LOCATION Location of the initial XSLT for fixing up ASCIIMathML | |
| ASCIIMATH_INPUT_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String ASCIIMATH_INPUT_ANNOTATION_NAME | |
| BRACKETED_PRESENTATION_MATHML_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String BRACKETED_PRESENTATION_MATHML_ANNOTATION_NAME | |
| CONTENT_FAILURES_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String CONTENT_FAILURES_ANNOTATION_NAME | |
| CONTENT_MATHML_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String CONTENT_MATHML_ANNOTATION_NAME | |
| LATEX_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String LATEX_ANNOTATION_NAME | |
| MAXIMA_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String MAXIMA_ANNOTATION_NAME | |
| MAXIMA_FAILURES_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String MAXIMA_FAILURES_ANNOTATION_NAME | |
| SNUGGLETEX_ANNOTATION_NAME | back to summary |
|---|---|
| public static final String SNUGGLETEX_ANNOTATION_NAME | |
| stylesheetManager | back to summary |
|---|---|
| private final StylesheetManager stylesheetManager Helper to manage the | |
| UPCONVERTER_BASE_LOCATION | back to summary |
|---|---|
| private static final String UPCONVERTER_BASE_LOCATION "Base" location for the XSLT stylesheets used here | |
| UPCONVERTER_XSL_LOCATION | back to summary |
|---|---|
| private static final String UPCONVERTER_XSL_LOCATION Location of the main up-converting XSLT | |
| MathMLUpConverter | back to summary |
|---|---|
| public MathMLUpConverter() Creates a new up-converter using a simple internal cache, hard-coded to use Saxon for XSLT 2.0 support. Use this constructor if you don't use XSLT yourself. In this case, you'll want your instance of this class to be reused as much as possible to get the benefits of caching. | |
| MathMLUpConverter | back to summary |
|---|---|
| public MathMLUpConverter(StylesheetCache stylesheetCache) Creates a new up-converter using the given Use this constructor if you do your own XSLT caching that you want to integrate in, or if the default doesn't do what you want. | |
| MathMLUpConverter | back to summary |
|---|---|
| public MathMLUpConverter(final TransformerFactoryChooser transformerFactoryChooser, StylesheetCache stylesheetCache) Creates a new up-converter using the given Use this constructor if you do your own XSLT caching that you want to integrate in, or if the default doesn't do what you want and/or if you want to override the choice of Saxon for XSLT 2.0 support (which is currently a bad idea!)
| |
| MathMLUpConverter | back to summary |
|---|---|
| public MathMLUpConverter(StylesheetManager stylesheetManager) Creates a new up-converter using the given | |
| createUpConversionOptionsElement | back to summary |
|---|---|
| private Element createUpConversionOptionsElement(final UpConversionOptions upConversionOptions) DEVELOPER NOTE: I have included the default value for this parameter within the XSLT as well so that people can reuse it easier in a standalone fashion. Make sure you update the XSLT if any of the defaults change here. | |
| upConvertASCIIMathML | back to summary |
|---|---|
| public Document upConvertASCIIMathML(final Document asciiMathMLDocument, final UpConversionOptions upConversionOptions) Up-converts the ASCIIMathML output represented by the given
| |
| upConvertASCIIMathML | back to summary |
|---|---|
| public Document upConvertASCIIMathML(final String rawASCIIMathML, final UpConversionOptions upConversionOptions) Convenience version of
| |
| upConvertSnuggleTeXMathML | back to summary |
|---|---|
| public Document upConvertSnuggleTeXMathML(final Document document, final UpConversionOptions upConversionOptions) Up-converts the SnuggleTeX XHTML output Document (assumed to contain islands of MathML),
creating a new result
| |