Output Method Declarations

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XSLT Developer's Guide

Output Method Declarations

After an XSLT transformation produces a result tree, the <xsl:output> element is used by the processor to determine how to serialize the result tree. The value of its method attribute can be xml, html, or text. The <xsl:output> element is usually placed after the <xsl:stylesheet> element. If the output is not serialized, but is instead made available as a tree (for example, in the DOM API), this element is ignored. This element must be a child of the <xsl:stylesheet> element.

The following are output method declarations.

<xsl:output method="xml"/>
<xsl:output method="html"/>
<xsl:output method="text"/>

See Also

Controlling Output Format with the media-type Attribute | xsl:output Element