WebPageOutputOptionsBuilder to generate different types of web pages.
More properties have been added to this class to control some of the finer aspects of this.@Deprecated public static enum WebPageOutputOptions.WebPageType extends Enum<WebPageOutputOptions.WebPageType>
WebPageOutputOptionsBuilder instead.| Enum Constant and Description |
|---|
CLIENT_SIDE_XSLT_STYLESHEET
Deprecated.
Use
WebPageOutputOptionsBuilder.createUniversalStylesheetOptions(String)
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact. |
CROSS_BROWSER_XHTML
Deprecated.
Use
WebPageOutputOptionsBuilder.createLegacyCrossBrowserOptions()
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact. |
MATHPLAYER_HTML
Deprecated.
See
WebPageOutputOptionsBuilder.createIEMathPlayerSpecificOptions()
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact. |
MOZILLA
Deprecated.
Use
WebPageOutputOptionsBuilder.createMozillaSpecificOptions() if
you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact. |
PROCESSED_HTML
Deprecated.
|
UNIVERSAL_STYLESHEET
Deprecated.
Use
WebPageOutputOptionsBuilder.createUniversalStylesheetOptions(String)
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact. |
| Modifier and Type | Method and Description |
|---|---|
static WebPageOutputOptions.WebPageType |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static WebPageOutputOptions.WebPageType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final WebPageOutputOptions.WebPageType MOZILLA
WebPageOutputOptionsBuilder.createMozillaSpecificOptions() if
you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact.
This is intended to be served as application/xhtml+xml with
encoding declared via HTTP header and meta element.
This is the best option for serving content exclusively on Mozilla-based browsers.
This will display as an XML tree on IE, which is not useful.
@Deprecated public static final WebPageOutputOptions.WebPageType CROSS_BROWSER_XHTML
WebPageOutputOptionsBuilder.createLegacyCrossBrowserOptions()
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact.W3CConstants.XHTML_11_MATHML_20_PUBLIC_IDENTIFIER
and System identifier defined in W3CConstants.XHTML_11_MATHML_20_SYSTEM_IDENTIFIER.
The charset is declared only in the meta element in order
to appease MathPlayer.
Intended to be served as application/xhtml+xml
Works on both Mozilla and IE6/7 (provided MathPlayer has been installed). This will display wrongly on IE6/7 if MathPlayer is not installed.
The main issue with this is that IE will want to download the relevant DTD, which hinders performance slightly.
@Deprecated public static final WebPageOutputOptions.WebPageType MATHPLAYER_HTML
WebPageOutputOptionsBuilder.createIEMathPlayerSpecificOptions()
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact.
Intended to be served as text/html.
This only works on IE clients with the MathPlayer plug-in preinstalled, but is a good option if that's your target audience.
This will display wrongly on IE6/7 if MathPlayer is not installed.
@Deprecated public static final WebPageOutputOptions.WebPageType UNIVERSAL_STYLESHEET
WebPageOutputOptionsBuilder.createUniversalStylesheetOptions(String)
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact.Page is created with an XML declaration but no DOCTYPE declaration.
The pref:renderer attribute on the html element will be set
to mathplayer-dl.
You MUST also call
WebPageOutputOptions.setClientSideXSLTStylesheetURLs(String...)
to indicate where the USS is going to be loaded from. This MUST
be on a server local to the document you are serving from, because IE enforces
a "same origin" policy for loading XSLT stylesheets. If you don't do
this, your page will not work on IE.
@Deprecated public static final WebPageOutputOptions.WebPageType CLIENT_SIDE_XSLT_STYLESHEET
WebPageOutputOptionsBuilder.createUniversalStylesheetOptions(String)
if you really need this, otherwise consider some of the MathJax outputs for better
cross-browser impact.
Intended to be served as application/xhtml+xml.
Combining this with the Universal Math Stylesheet or something similar can give good cross-browser results.
@Deprecated public static final WebPageOutputOptions.WebPageType PROCESSED_HTML
WebPageOutputOptionsBuilder.createHTML4Options()
Intended to be served as text/html.
You will have to use a suitable DOMPostProcessor to convert any MathML islands
into other forms. (E.g. replace by an applet, replace by images, ...)
public static WebPageOutputOptions.WebPageType[] values()
for (WebPageOutputOptions.WebPageType c : WebPageOutputOptions.WebPageType.values()) System.out.println(c);
public static WebPageOutputOptions.WebPageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2008–2026 The University of Edinburgh. All rights reserved.