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
versionattribute 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
encodingattribute 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
yesandno. This attribute is used only whenmethod="xml".- standalone
Defines the value of the
standaloneattribute of the XML declaration in the output document. Valid values areyesandno. This attribute is used only whenmethod="xml".- doctype-public
Defines the value of the
PUBLICattribute of theDOCTYPEdeclaration 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
SYSTEMattribute of theDOCTYPEdeclaration 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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access