xsl:output

xsl:output

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.

Syntax

<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  />

Required Attributes

None.

Optional Attributes

method
Specifies output format.
version
Specifies the value of the version attribute of the XML or HTML declaration in the output document. This attribute is only used when method="html"登录查看完整内容