The main implementation of this is XMLStringOutputOptions, which you can use
for normal SnuggleTeX functionality. There is also a SerializationOptions
implementation that can be used for various utility classes, such as MathMLUtilities.
XMLStringOutputOptions, SerializationOptions
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_ENCODING
Default encoding to use |
| public static final int | DEFAULT_INDENT
Default indent to use when |
| Modifier and Type | Method and Description |
|---|---|
| public String | getDoctypePublic()
Gets the public identifier to use in the resulting DOCTYPE declaration,
as described in |
| public String | getDoctypeSystem()
Gets the system identifier to use in the resulting DOCTYPE declaration,
as described in |
| public String | |
| public int | |
| public SerializationMethod | |
| public boolean | |
| public boolean | |
| public boolean | isUsingNamedEntities()
Returns whether to use named entities for certain MathML symbols rather than numeric character references. |
| public void | setDoctypePublic(String
public identifier to use, null for no identifier. doctypePublic)Sets the public identifier to use in the resulting DOCTYPE declaration,
as described in |
| public void | setDoctypeSystem(String
system identifier to use, null for no identifier. doctypeSystem)Sets the system identifier to use in the resulting DOCTYPE declaration,
as described in |
| public void | setEncoding(String
encoding to use, which must be non-null and recognised by the XSLT
encoding)TransformerFactory that will end up doing the serialization.Sets the encoding for the resulting serialized XML. |
| public void | setIncludingXMLDeclaration(boolean
true to include an XML declaration, false otherwise. includingXMLDeclaration)Sets whether to include an XML declaration on the resulting output. |
| public void | |
| public void | setIndenting(boolean
true to indent, false otherwise. indenting)Sets whether the resulting XML will be indented or not. |
| public void | setSerializationMethod(SerializationMethod
SerializationMethod to use, which must not be null.Sets the |
| public void | setUsingNamedEntities(boolean
true to use named entities, false to default to using
numeric character references. usingNamedEntities)Sets whether to use named entities for certain MathML symbols rather than numeric character references. |
| DEFAULT_ENCODING | back to summary |
|---|---|
| public static final String DEFAULT_ENCODING Default encoding to use | |
| DEFAULT_INDENT | back to summary |
|---|---|
| public static final int DEFAULT_INDENT Default indent to use when | |
| getDoctypePublic | back to summary |
|---|---|
| public String getDoctypePublic() Gets the public identifier to use in the resulting DOCTYPE declaration,
as described in Default is null | |
| getDoctypeSystem | back to summary |
|---|---|
| public String getDoctypeSystem() Gets the system identifier to use in the resulting DOCTYPE declaration,
as described in Default is null | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() Gets the encoding for the resulting serialized XML.
Default is | |
| getIndent | back to summary |
|---|---|
| public int getIndent() Returns the indentation level to use when This must be a non-negative integer.
| |
| getSerializationMethod | back to summary |
|---|---|
| public SerializationMethod getSerializationMethod() Gets the
Default is
Note that | |
| isIncludingXMLDeclaration | back to summary |
|---|---|
| public boolean isIncludingXMLDeclaration() Gets whether to include an XML declaration on the resulting output. Default is false. | |
| isIndenting | back to summary |
|---|---|
| public boolean isIndenting() Returns whether the resulting XML will be indented or not. (This depends on how clever the underlying XSLT engine will be!) Default is false. | |
| isUsingNamedEntities | back to summary |
|---|---|
| public boolean isUsingNamedEntities() Returns whether to use named entities for certain MathML symbols rather than numeric character references. Default is false. | |
| setDoctypePublic | back to summary |
|---|---|
| public void setDoctypePublic(String doctypePublic) Sets the public identifier to use in the resulting DOCTYPE declaration,
as described in
| |
| setDoctypeSystem | back to summary |
|---|---|
| public void setDoctypeSystem(String doctypeSystem) Sets the system identifier to use in the resulting DOCTYPE declaration,
as described in
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Sets the encoding for the resulting serialized XML. Must not be null.
| |
| setIncludingXMLDeclaration | back to summary |
|---|---|
| public void setIncludingXMLDeclaration(boolean includingXMLDeclaration) Sets whether to include an XML declaration on the resulting output.
| |
| setIndent | back to summary |
|---|---|
| public void setIndent(int indent) Sets the indentation level to use when This must be a non-negative integer.
| |
| setIndenting | back to summary |
|---|---|
| public void setIndenting(boolean indenting) Sets whether the resulting XML will be indented or not. (This depends on how clever the underlying XSLT engine will be!)
| |
| setSerializationMethod | back to summary |
|---|---|
| public void setSerializationMethod(SerializationMethod serializationMethod) Sets the
Note that
| |
| setUsingNamedEntities | back to summary |
|---|---|
| public void setUsingNamedEntities(boolean usingNamedEntities) Sets whether to use named entities for certain MathML symbols rather than numeric character references. Note that this requires an XSLT 2.0-compliant engine (e.g. Saxon, which is in the "full" SnuggleTeX distribution.) (Also note that the resulting XML won't be parseable unless accompanied with a DTD defining the MathML entities!)
| |