Read XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Online
Authors: Michael Kay
use-character-maps optional | Whitespace-separated list of lexical QNames | A list of the names of |
version optional | NMTOKEN | Defines the version of the output format. |
Content
None, the element is always empty.
Effect
A stylesheet can contain several output format definitions. This is useful if the stylesheet produces multiple result documents or if it produces different kinds of output on different occasions. One of the output format definitions can be unnamed, and the others are named using a QName in the same way as other stylesheet objects.
An output definition can be split over several
name
attribute) constitute one output definition. In this case the attributes defined in these multiple elements are in effect combined into a single conceptual
The concept of import precedence is explained under
The
method
attribute controls the format of the output, and this in turn affects the detailed meaning and the default values of the other attributes.
Four output methods are defined in the specification:
xml
,
html
,
xhtml
, and
text
. Alternatively, the output method may be given as a QName, which must include a non-null prefix that identifies a namespace that is currently in scope. This option is provided for vendor or user extensions, and the meaning is not defined in the standard. A vendor-defined output method can attach its own interpretations to the meanings of the other attributes on the
If the
method
attribute is omitted, the output will be in XML format, unless the result tree is recognizably HTML or XHTML. The result tree is recognized as HTML if:
The result tree is recognized as XHTML if:
Examples
The following example requests XML output using iso-8859-1 encoding. The output will be indented for readability, and the contents of the