XML technologies / XSLT / XSLT introduction / The output element

 

The top-level element <xsl:output> basically indicates which kind of output the processor has to generate. Three output formats are possible: XML, HTML and text and in XSLT 2.0 also XHTML. They are indicated as values of the method attribute. The standard output of XSLT is XML. Except there is a HTML tag in the document, then HTML 4.0 is generated.

In our example the <xsl:output> element could be as follows:

<xsl:output method="html" version="4.01" encoding="UTF-8"/>

The attribute value UTF-8 identifies the character set as a Unicode character set in the character set of UTF-8 (when you are interested in the equipment of the character set, see for example the Font Arial Unicode MS on Windows systems).

 

 

back to top