Defines the characteristics of an output document.
Typically has one of four values:
text. This value indicates the type of document that is generated. An XSLT processor can add other values to this list; how those values affect the generated document is determined by the XSLT processor. The default value is
xmlunless the root element of the output document is
[1.0] In XSLT 1.0, there are only three output methods defined in the standard:
text. [2.0] In XSLT 2.0,
xhtmlhas been added as an output method that must be supported by an XSLT processor. Individual processors are still free to add other values as well. To simplify our discussion here, we’ll discuss
xhtmlas one of the standard output types without constantly reminding you that it’s not available in XSLT 1.0.
Defines the version of the XML, HTML, or XHTML output document. This attribute is ignored with
versionattribute of the
<xsl:output>element works differently from the
versionattribute that is legal on every XSLT element in XSLT 2.0. See “[2.0] Attributes common to all XSLT elements” earlier in this appendix for more details.
Defines the value of the
encodingspecified in the XML declaration in the output document. This attribute is ignored with
Defines whether the XML declaration is omitted in the output document. ...