10.1. The <xsl:output> Top-Level Element

The <xsl:output> top-level element establishes the type of structure the output will contain (XML, HTML, or text) and provides attributes to select several different output options. It must be a child of the <xsl:stylesheet> or <xsl:transform> document element, and can occur anywhere within the document element, unless the <xsl:import> element is present, in which case it must come after that element. Its ten attributes, shown in the following element model definition, are optional and will be discussed individually in the following sections. This top-level element is always an empty element.

<!-- Category: top-level-element -->

<xsl:output

  method = "xml" | "html" | "text" | qname-but-not-
					ncname version ...

Get XSLT and XPATH: A Guide to XML Transformations 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.