org.exolab.adaptx.xslt

Class XSLOutput

Implemented Interfaces:
OutputFormat

public class XSLOutput
extends XSLObject
implements OutputFormat

A class for maintaining state information for the output of the XSL result tree

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:51 $

Author:
Keith Visco

Since:
XSLT 19990813 (XSL:P version 19990928)

Field Summary

Fields inherited from class org.exolab.adaptx.xslt.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

XSLOutput()
Creates a new Output with the given parent Stylesheet

Method Summary

String
getDoctypePublicId()
Returns the Public Id that should be used for the Doctype
String
getDoctypeSystemId()
Returns the System Id that should be used in the Doctype
boolean
getIndent()
Returns whether or not indenting the result is allowed
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
String
getVersion()
Returns the XML version that should be output during serialization of the result tree
void
setDoctypePublicId(String publicId)
Sets the Public Id that should be used for the Doctype
void
setDoctypeSystemId(String systemId)
Sets the System ID that should be used in the Doctype
void
setIndent(boolean allowIndentation)
Returns whether or not indenting the result is allowed
void
setMethod(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(String version)
Sets the version of the XML output (eg "1.0")

Methods inherited from class org.exolab.adaptx.xslt.XSLObject

appendAction, appendText, appendText, getActions, getAttribute, getAttributes, getNearestAncestor, getNodeValue, getStylesheet, getText, getType, getTypeFromName, getTypeName, resolveNamespace, setAllowActions, setAttribute, setTypeName

Constructor Details

XSLOutput

public XSLOutput()
Creates a new Output with the given parent Stylesheet

Method Details

getDoctypePublicId

public String getDoctypePublicId()
Returns the Public Id that should be used for the Doctype
Specified by:
getDoctypePublicId in interface OutputFormat

Returns:
the Public Id that should be used for the Doctype, or null if none has been set


getDoctypeSystemId

public String getDoctypeSystemId()
Returns the System Id that should be used in the Doctype
Specified by:
getDoctypeSystemId in interface OutputFormat

Returns:
the System Id that should be used for the Doctype, or null if none has been set


getIndent

public boolean getIndent()
Returns whether or not indenting the result is allowed
Specified by:
getIndent in interface OutputFormat

Returns:
true if whitespace may be added to the output result for indentation and readability, otherwise returns false


getMethod

public String getMethod()
Returns the output method
Predefined output methods are: xml, html, and text
Specified by:
getMethod in interface OutputFormat

Returns:
the output method


getOmitXMLDeclaration

public boolean getOmitXMLDeclaration()
Returns whether or not the XML declaration should be supressed when serializing the result
Specified by:
getOmitXMLDeclaration in interface OutputFormat

Returns:
true if the XML declaration should be supressed when serializing the result


getVersion

public String getVersion()
Returns the XML version that should be output during serialization of the result tree
Specified by:
getVersion in interface OutputFormat

Returns:
the XML version that should be used during serialization of of the result tree


setDoctypePublicId

public void setDoctypePublicId(String publicId)
Sets the Public Id that should be used for the Doctype
Specified by:
setDoctypePublicId in interface OutputFormat

Parameters:
publicId - the Public Id that should be used for the Doctype


setDoctypeSystemId

public void setDoctypeSystemId(String systemId)
Sets the System ID that should be used in the Doctype
Specified by:
setDoctypeSystemId in interface OutputFormat

Parameters:
systemId - the System ID for the Doctype


setIndent

public void setIndent(boolean allowIndentation)
Returns whether or not indenting the result is allowed
Specified by:
setIndent in interface OutputFormat


setMethod

public void setMethod(String method)
Sets the output method
Specified by:
setMethod in interface OutputFormat

Parameters:


setOmitXMLDeclaration

public void setOmitXMLDeclaration(boolean omitDeclaration)
Sets whether or not the XML declaration should be supressed when serializing the result
Specified by:
setOmitXMLDeclaration in interface OutputFormat

Parameters:


setVersion

public void setVersion(String version)
Sets the version of the XML output (eg "1.0")
Specified by:
setVersion in interface OutputFormat

Parameters: