xsl:output Element
Specifies options for use in serializing the result tree.
<xsl:output
method = "xml"
version = nmtoken
encoding = string
omit-xml-declaration = "yes" | "no"
standalone = "yes" | "no"
doctype-public = string
doctype-system = string
cdata-section-elements = qnames
indent = "yes" | "no"
media-type = string
/>
Attributes
- method
- Identifies the overall method used for outputting the result tree.
- version
- Specifies version "1.0" in relation to the "xml" output method; this appears in the output XML declaration as <?xml version="1.0"?>.
- encoding
- Specifies the preferred character encoding that the parser should use to encode sequences of characters as sequences of bytes. The value of the attribute is treated case-insensitively; it must contain only printable ASCII characters and be a registered character set, or begin with x-.
- omit-xml-declaration
- Specifies whether the XSLT processor should output an XML declaration; the value must be yes or no.
- standalone
- Specifies whether the XSLT processor should output a standalone document declaration; the value must be yes or no.
- doctype-public
- Specifies the public identifier to be used in the DTD.
- doctype-system
- Specifies the system identifier to be used in the DTD.
- cdata-section-elements
- Specifies a list of the names of elements whose text node children should be output using CDATA sections.
- indent
- Specifies additional whitespace to add when outputting the result tree; the value must be yes or no.
- media-type
- Specifies the media type (MIME content type) of the data that results from outputting the result tree.
Element Information
Remarks
A style sheet may contain multiple <xsl:output> elements and may include style sheets that also contain <xsl:output> elements. All the <xsl:output> elements occurring in a style sheet are merged into a single effective <xsl:output> element. It is an error if there is more than one such value for an attribute. The values of attributes are defaulted after the <xsl:output> elements have been merged; different output methods may have different default values for an attribute.