<xsl:output method="xml" omit-xml-declaration="no" indent="yes"/>The xsl:output attributes covered in this interface are:
version encoding omit-xml-declarations standalone doctype-public doctype-system cdata-section-elements indent media-typeThe 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.
Modifier and Type | Method and Description |
---|---|
public String | Returns: the public identifier to be used in the DOCTYPE declaration in the output document.Returns the previously set value of the value to be used as the public identifier in the document type declaration (DTD). |
public String | Returns: the system identifier to be used in the DOCTYPE declaration in the output document.Returns the previously set value of the value to be used as the system identifier in the document type declaration (DTD). |
public String | |
public boolean | Returns: true if the output document should be indented to visually indicate its structure.
|
public int | |
public String | Returns: the mediatype the media-type or MIME type associated with the output document.
|
public boolean | Returns: true if the XML declaration is to be omitted from the output document.
|
public String | Returns: The value of the parameterThe name of the property, which is just the local name
if it is in no namespace, but is the URI in curly braces followed by
the local name if it is in a namespace, for example:
name)
Get the value for a property that affects seraialization, if a property was set return that value, otherwise return the default value, otherwise return null. |
public String | Returns: The default value of the parameter, or null if there is no default value.The name of the property. name)Get the default value for a property that affects seraialization, or null if there is none. |
public String | Returns: a value of "yes" if thestandalone delaration is to
be included in the output document.
|
public String | |
public void | setCdataSectionElements(List<String>
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. URI_and_localNames)Sets the value coming from the xsl:output cdata-section-elements stylesheet property. |
public void | setDoctype(String
the system identifier to be used in the DOCTYPE declaration
in the output document. system, String the public identifier to be used in the DOCTYPE declaration in
the output document. pub)Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties |
public void | setDoctypePublic(String
the public identifier to be used in the DOCTYPE
declaration in the output document. doctype)Set the value coming from the xsl:output doctype-public stylesheet attribute. |
public void | setDoctypeSystem(String
the system identifier to be used in the DOCTYPE
declaration in the output document. doctype)Set the value coming from the xsl:output doctype-system stylesheet attribute. |
public void | setEncoding(String
the character encoding encoding)Sets the character encoding coming from the xsl:output encoding stylesheet attribute. |
public void | setIndent(boolean
true if the output document should be indented to visually
indicate its structure. indent)Sets the value coming from the xsl:output indent stylesheet attribute. |
public void | setMediaType(String
the media-type or MIME type associated with the output
document. mediatype)Sets the value coming from the xsl:output media-type stylesheet attribute. |
public void | setOmitXMLDeclaration(boolean
true if the XML declaration is to be omitted from the output
document. b)Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute |
public void | setOutputProperty(String
The name of the property, which is just the local name
if it is in no namespace, but is the URI in curly braces followed by
the local name if it is in a namespace, for example:
name, String
The non-default value of the parameter val)Set the non-default value for a property that affects seraialization. |
public void | setOutputPropertyDefault(String
The name of the property, which is just the local name
if it is in no namespace, but is the URI in curly braces followed by
the local name if it is in a namespace, for example:
name, String
The default value of the parameter val)Set the default value for a property that affects seraialization. |
public void | setStandalone(String
a value of "yes" indicates that the
standalone)standalone delaration is to be included in the output
document.Sets the value coming from the xsl:output standalone stylesheet attribute. |
public void | setVersion(String
the version of the output format. version)Sets the value coming from the xsl:output version attribute. |
getDoctypePublic | back to summary |
---|---|
public String getDoctypePublic() Returns the previously set value of the value to be used as the public identifier in the document type declaration (DTD).
|
getDoctypeSystem | back to summary |
---|---|
public String getDoctypeSystem() Returns the previously set value of the value to be used as the system identifier in the document type declaration (DTD).
|
getEncoding | back to summary |
---|---|
public String getEncoding()
|
getIndent | back to summary |
---|---|
public boolean getIndent()
|
getIndentAmount | back to summary |
---|---|
public int getIndentAmount()
|
getMediaType | back to summary |
---|---|
public String getMediaType()
|
getOmitXMLDeclaration | back to summary |
---|---|
public boolean getOmitXMLDeclaration()
|
getOutputProperty | back to summary |
---|---|
public String getOutputProperty(String name) Get the value for a property that affects seraialization, if a property was set return that value, otherwise return the default value, otherwise return null.
|
getOutputPropertyDefault | back to summary |
---|---|
public String getOutputPropertyDefault(String name) Get the default value for a property that affects seraialization, or null if there is none. It is possible that a non-default value was set for the property, however the value returned by this method is unaffected by any non-default settings. |
getStandalone | back to summary |
---|---|
public String getStandalone()
|
getVersion | back to summary |
---|---|
public String getVersion()
|
setCdataSectionElements | back to summary |
---|---|
public void setCdataSectionElements(List<String> 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.
|
setDoctype | back to summary |
---|---|
public void setDoctype(String system, String pub) Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties |
setDoctypePublic | back to summary |
---|---|
public void setDoctypePublic(String doctype) Set the value coming from the xsl:output doctype-public stylesheet attribute.
|
setDoctypeSystem | back to summary |
---|---|
public void setDoctypeSystem(String doctype) Set the value coming from the xsl:output doctype-system stylesheet attribute.
|
setEncoding | back to summary |
---|---|
public void setEncoding(String encoding) Sets the character encoding coming from the xsl:output encoding stylesheet attribute.
|
setIndent | back to summary |
---|---|
public void setIndent(boolean indent) Sets the value coming from the xsl:output indent stylesheet attribute.
|
setMediaType | back to summary |
---|---|
public void setMediaType(String mediatype) Sets the value coming from the xsl:output media-type stylesheet attribute.
|
setOmitXMLDeclaration | back to summary |
---|---|
public void setOmitXMLDeclaration(boolean b) Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute
|
setOutputProperty | back to summary |
---|---|
public void setOutputProperty(String name, String val) Set the non-default value for a property that affects seraialization.
|
setOutputPropertyDefault | back to summary |
---|---|
public void setOutputPropertyDefault(String name, String val) Set the default value for a property that affects seraialization.
|
setStandalone | back to summary |
---|---|
public void setStandalone(String standalone) Sets the value coming from the xsl:output standalone stylesheet attribute.
|
setVersion | back to summary |
---|---|
public void setVersion(String version) Sets the value coming from the xsl:output version attribute.
|