Name
<xsl:output> — Defines the characteristics of the output document.
Category
Top-level element
Required Attributes
None.
Optional Attributes
- method
Typically has one of three values:
xml
,html
, ortext
. 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.- version
Defines the value of the
version
attribute of the XML or HTML declaration in the output document. This attribute is used only whenmethod="html"
ormethod="xml"
.- encoding
Defines the value of the
encoding
attribute of the XML declaration in the output document.- omit-xml-declaration
Defines whether the XML declaration is omitted in the output document. Allowable values are
yes
andno
. This attribute is used only whenmethod="xml"
.- standalone
Defines the value of the
standalone
attribute of the XML declaration in the output document. Valid values areyes
andno
. This attribute is used only whenmethod="xml"
.- doctype-public
Defines the value of the
PUBLIC
attribute of theDOCTYPE
declaration in the output document. This attribute defines the public identifier of the output document’s DTD. It is used only whenmethod="html"
ormethod="xml"
.- doctype-system
Defines the value of the
SYSTEM
attribute of theDOCTYPE
declaration in the output document. It defines the system identifier of the output document’s DTD. This attribute is used only whenmethod="html"
ormethod="xml"
.- cdata-section-elements
Get XSLT now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.