FileDocCategorySizeDatePackage
XSLOutputAttributes.javaAPI DocJava SE 6 API6407Tue Jun 10 00:23:08 BST 2008com.sun.org.apache.xml.internal.serializer

XSLOutputAttributes

public interface XSLOutputAttributes
This interface has methods associated with the XSLT xsl:output attribues specified in the stylesheet that effect the format of the document output. In an XSLT stylesheet these attributes appear for example as:

The xsl:output attributes covered in this interface are:
version
encoding
omit-xml-declarations
standalone
doctype-public
doctype-system
cdata-section-elements
indent
media-type
The one attribute not covered in this interface is method as this value is implicitly chosen by the serializer that is created, for example ToXMLStream vs. ToHTMLStream or another one. This interface is only used internally within Xalan.
xsl.usage
internal

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetDoctypePublic()
Returns the previously set value of the value to be used as the public identifier in the document type declaration (DTD).

return
the public identifier to be used in the DOCTYPE declaration in the output document.

public java.lang.StringgetDoctypeSystem()
Returns the previously set value of the value to be used as the system identifier in the document type declaration (DTD).

return
the system identifier to be used in the DOCTYPE declaration in the output document.

public java.lang.StringgetEncoding()

return
the character encoding to be used in the output document.

public booleangetIndent()

return
true if the output document should be indented to visually indicate its structure.

public intgetIndentAmount()

return
the number of spaces to indent for each indentation level.

public java.lang.StringgetMediaType()

return
the mediatype the media-type or MIME type associated with the output document.

public booleangetOmitXMLDeclaration()

return
true if the XML declaration is to be omitted from the output document.

public java.lang.StringgetStandalone()

return
a value of "yes" if the standalone delaration is to be included in the output document.

public java.lang.StringgetVersion()

return
the version of the output format.

public voidsetCdataSectionElements(java.util.Vector URI_and_localNames)
Sets the value coming from the xsl:output cdata-section-elements stylesheet property. This sets the elements whose text elements are to be output as CDATA sections.

param
URI_and_localNames pairs of namespace URI and local names that identify elements whose text elements are to be output as CDATA sections. The namespace of the local element must be the given URI to match. The qName is not given because the prefix does not matter, only the namespace URI to which that prefix would map matters, so the prefix itself is not relevant in specifying which elements have their text to be output as CDATA sections.

public voidsetDoctype(java.lang.String system, java.lang.String pub)
Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties

param
system the system identifier to be used in the DOCTYPE declaration in the output document.
param
pub the public identifier to be used in the DOCTYPE declaration in the output document.

public voidsetDoctypePublic(java.lang.String doctype)
Set the value coming from the xsl:output doctype-public stylesheet attribute.

param
doctype the public identifier to be used in the DOCTYPE declaration in the output document.

public voidsetDoctypeSystem(java.lang.String doctype)
Set the value coming from the xsl:output doctype-system stylesheet attribute.

param
doctype the system identifier to be used in the DOCTYPE declaration in the output document.

public voidsetEncoding(java.lang.String encoding)
Sets the character encoding coming from the xsl:output encoding stylesheet attribute.

param
encoding the character encoding

public voidsetIndent(boolean indent)
Sets the value coming from the xsl:output indent stylesheet attribute.

param
indent true if the output document should be indented to visually indicate its structure.

public voidsetMediaType(java.lang.String mediatype)
Sets the value coming from the xsl:output media-type stylesheet attribute.

param
mediatype the media-type or MIME type associated with the output document.

public voidsetOmitXMLDeclaration(boolean b)
Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute

param
b true if the XML declaration is to be omitted from the output document.

public voidsetStandalone(java.lang.String standalone)
Sets the value coming from the xsl:output standalone stylesheet attribute.

param
standalone a value of "yes" indicates that the standalone delaration is to be included in the output document.

public voidsetVersion(java.lang.String version)
Sets the value coming from the xsl:output version attribute.

param
version the version of the output format.