public class XSLOutput extends XSLObject implements OutputFormat
APPLY_IMPORTS, APPLY_TEMPLATES, ARG, ATTRIBUTE, ATTRIBUTE_SET, CALL_TEMPLATE, CDATA, CHOOSE, COMMENT, CONTENTS, COPY, COPY_OF, ELEMENT, ENTITY_REF, FOR_EACH, FUNCTIONS, ID, IF, IMPORT, INCLUDE, KEY, LITERAL, LOCALE, MESSAGE, NUMBER, OTHERWISE, OUTPUT, PARAM, PI, PRESERVE_SPACE, SCRIPT, SORT, STRIP_SPACE, STYLESHEET, TEMPLATE, TEXT, VALUE_OF, VARIABLE, WHEN, WITH_PARAM| Constructor and Description |
|---|
XSLOutput()
Creates a new Output with the given parent Stylesheet
|
| Modifier and Type | Method and Description |
|---|---|
XSLOutput |
copy()
Creates a new copy of this XSLOutput
|
java.lang.String |
getDoctypePublicId()
Returns the Public Id that should be used for the Doctype
|
java.lang.String |
getDoctypeSystemId()
Returns the System Id that should be used in the Doctype
|
java.lang.String |
getEncoding()
Returns the specified encoding, or null if no encoding
was specified.
|
boolean |
getIndent()
Returns whether or not indenting the result is allowed
|
java.lang.String |
getMethod()
Returns the output method
Predefined output methods are: xml, html, and text |
boolean |
getOmitXMLDeclaration()
Returns whether or not the XML declaration should be supressed when
serializing the result
|
java.lang.String |
getVersion()
Returns the XML version that should be output during serialization
of the result tree
|
void |
merge(XSLOutput output)
Merges the given XSLOutput object into this one.
|
void |
setDoctypePublicId(java.lang.String publicId)
Sets the Public Id that should be used for the Doctype
|
void |
setDoctypeSystemId(java.lang.String systemId)
Sets the System ID that should be used in the Doctype
|
void |
setEncoding(java.lang.String encoding)
Sets the character encoding.
|
void |
setIndent(boolean allowIndentation)
Returns whether or not indenting the result is allowed
|
void |
setMethod(java.lang.String method)
Sets the output method
|
void |
setOmitXMLDeclaration(boolean omitDeclaration)
Sets whether or not the XML declaration should be supressed when
serializing the result
|
void |
setVersion(java.lang.String version)
Sets the version of the XML output (eg "1.0")
|
addNamespaceDecl, appendAction, appendText, appendText, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getStylesheet, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setAttribute, setNamespace, setTypeNamepublic XSLOutput()
public XSLOutput copy()
public java.lang.String getDoctypePublicId()
getDoctypePublicId in interface OutputFormatpublic java.lang.String getDoctypeSystemId()
getDoctypeSystemId in interface OutputFormatpublic java.lang.String getEncoding()
OutputFormatgetEncoding in interface OutputFormatpublic boolean getIndent()
getIndent in interface OutputFormatpublic java.lang.String getMethod()
getMethod in interface OutputFormatpublic boolean getOmitXMLDeclaration()
getOmitXMLDeclaration in interface OutputFormatpublic java.lang.String getVersion()
getVersion in interface OutputFormatpublic void merge(XSLOutput output)
output - the XSLOutput to merge with this one.public void setDoctypePublicId(java.lang.String publicId)
setDoctypePublicId in interface OutputFormatpublicId - the Public Id that should be used for the Doctypepublic void setDoctypeSystemId(java.lang.String systemId)
setDoctypeSystemId in interface OutputFormatsystemId - the System ID for the Doctypepublic void setEncoding(java.lang.String encoding)
OutputFormatsetEncoding in interface OutputFormatencoding - the character encodingOutputFormat.getEncoding()public void setIndent(boolean allowIndentation)
setIndent in interface OutputFormatpublic void setMethod(java.lang.String method)
setMethod in interface OutputFormatmethod, - the output method of this xsl:output object
public void setOmitXMLDeclaration(boolean omitDeclaration)
setOmitXMLDeclaration in interface OutputFormatomitDeclaration, - the flag indicating whether or not the
XML declaration should be supressed when
serializing the result. Use true if you do NOT want the XML Declaration
to appear in the output. The default value depends on the Method.
If the method is "xml", this value will be false by default.
If the method is "html", this value will be true by default.public void setVersion(java.lang.String version)
setVersion in interface OutputFormatversion, - the xml version to output