Class XSLOutput
java.lang.Object
org.exolab.adaptx.xslt.XSLObject
org.exolab.adaptx.xslt.XSLOutput
- All Implemented Interfaces:
OutputFormat
A class for maintaining state information for the output
of the XSL result tree
- Since:
- XSLT 19990813 (XSL:P version 19990928)
- Version:
- $Revision: 4773 $ $Date: 2004-09-28 20:39:18 +0200 (Tue, 28 Sep 2004) $
- Author:
- Keith Visco
-
Field Summary
Fields inherited from class XSLObject
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a new copy of this XSLOutputReturns the Public Id that should be used for the DoctypeReturns the System Id that should be used in the DoctypeReturns the specified encoding, or null if no encoding was specified.booleanReturns whether or not indenting the result is allowedReturns the output method
Predefined output methods are: xml, html, and textbooleanReturns whether or not the XML declaration should be supressed when serializing the resultReturns the XML version that should be output during serialization of the result treevoidMerges the given XSLOutput object into this one.voidsetDoctypePublicId(String publicId) Sets the Public Id that should be used for the DoctypevoidsetDoctypeSystemId(String systemId) Sets the System ID that should be used in the DoctypevoidsetEncoding(String encoding) Sets the character encoding.voidsetIndent(boolean allowIndentation) Returns whether or not indenting the result is allowedvoidSets the output methodvoidsetOmitXMLDeclaration(boolean omitDeclaration) Sets whether or not the XML declaration should be supressed when serializing the resultvoidsetVersion(String version) Sets the version of the XML output (eg "1.0")Methods inherited from class XSLObject
addNamespaceDecl, appendAction, appendText, appendText, getActions, getAttribute, getAttributes, getNamespace, getNearestAncestor, getNodeValue, getStylesheet, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setAttribute, setNamespace, setTypeName
-
Constructor Details
-
XSLOutput
public XSLOutput()Creates a new Output with the given parent Stylesheet
-
-
Method Details
-
copy
-
getDoctypePublicId
Returns the Public Id that should be used for the Doctype- Specified by:
getDoctypePublicIdin interfaceOutputFormat- Returns:
- the Public Id that should be used for the Doctype, or null if none has been set
-
getDoctypeSystemId
Returns the System Id that should be used in the Doctype- Specified by:
getDoctypeSystemIdin interfaceOutputFormat- Returns:
- the System Id that should be used for the Doctype, or null if none has been set
-
getEncoding
Description copied from interface:OutputFormatReturns the specified encoding, or null if no encoding was specified.- Specified by:
getEncodingin interfaceOutputFormat- Returns:
- the encoding, or null if no encoding specified.
-
getIndent
public boolean getIndent()Returns whether or not indenting the result is allowed- Specified by:
getIndentin interfaceOutputFormat- Returns:
- true if whitespace may be added to the output result for indentation and readability, otherwise returns false
-
getMethod
Returns the output method
Predefined output methods are: xml, html, and text- Specified by:
getMethodin interfaceOutputFormat- Returns:
- the output method
-
getOmitXMLDeclaration
public boolean getOmitXMLDeclaration()Returns whether or not the XML declaration should be supressed when serializing the result- Specified by:
getOmitXMLDeclarationin interfaceOutputFormat- Returns:
- true if the XML declaration should be supressed when serializing the result
-
getVersion
Returns the XML version that should be output during serialization of the result tree- Specified by:
getVersionin interfaceOutputFormat- Returns:
- the XML version that should be used during serialization of of the result tree
-
merge
Merges the given XSLOutput object into this one. Any attributes already existing in this XSLOutput will be over-written with the ones from the given XSLOutput.- Parameters:
output- the XSLOutput to merge with this one.
-
setDoctypePublicId
Sets the Public Id that should be used for the Doctype- Specified by:
setDoctypePublicIdin interfaceOutputFormat- Parameters:
publicId- the Public Id that should be used for the Doctype
-
setDoctypeSystemId
Sets the System ID that should be used in the Doctype- Specified by:
setDoctypeSystemIdin interfaceOutputFormat- Parameters:
systemId- the System ID for the Doctype
-
setEncoding
Description copied from interface:OutputFormatSets the character encoding.- Specified by:
setEncodingin interfaceOutputFormat- Parameters:
encoding- the character encoding- See Also:
-
setIndent
public void setIndent(boolean allowIndentation) Returns whether or not indenting the result is allowed- Specified by:
setIndentin interfaceOutputFormat
-
setMethod
Sets the output method- Specified by:
setMethodin interfaceOutputFormat- Parameters:
method- , the output method of this xsl:output object
Predefined output methods are: xml, html, and text
-
setOmitXMLDeclaration
public void setOmitXMLDeclaration(boolean omitDeclaration) Sets whether or not the XML declaration should be supressed when serializing the result- Specified by:
setOmitXMLDeclarationin interfaceOutputFormat- Parameters:
omitDeclaration- , 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.
-
setVersion
Sets the version of the XML output (eg "1.0")- Specified by:
setVersionin interfaceOutputFormat- Parameters:
version- , the xml version to output
Predefined output methods are: xml, html, and text
-