The <xsl:output>
element controls the characteristics of the output document. To function correctly in Netscape, this element, with the method attribute, must be used. As of 7.0, method="text"
works as expected.
<xsl:output method="xml" | "html" | "text" version=STRING encoding=STRING omit-xml-declaration="yes" | "no" standalone="yes" | "no" doctype-public=STRING doctype-system=STRING cdata-section-elements=LIST-OF-NAMES indent="yes" | "no" media-type=STRING />
None.
method
version
method="html"
or method="xml"
.encoding
encoding
attribute in the output document.omit-xml-declaration
yes
" or "no
".standalone
(Not supported.)doctype-public
PUBLIC
attribute of the DOCTYPE
declaration in the output document.doctype-system
SYSTEM
attribute of the DOCTYPE
declaration in the output document.cdata-section-elements
CDATA
sections. Elements should be whitespace separated.indent
(Not supported.)media-type
(Not supported.)Top-level, must be the child <xsl:stylesheet>
or <xsl:transform>
.
XSLT, section 16.
Partial support. See comments above.
© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XSLT/output