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

 


Copyright © dpunkt.verlag GmbH 2004
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "XSL-FO in der Praxis" ("XSL-FO in practice") is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.

dpunkt.verlag GmbH, Ringstraße 19B, 69115 Heidelberg, fon 06221-14830, fax 06221-148399, hallo@dpunkt.de