Stylus Studio XML Editor

Table of contents

Appendices

7 HTML Output Method

HTML Output Method

The html output method outputs the instance of the data model as HTML.

For example,

<xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="html"/>

<xsl:template match="/">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>

...

</xsl:stylesheet>

The version parameter indicates the version of the HTML Recommendation [HTML] to which the serialized result is to conform. The default value is 4.0, which specifies that the result SHOULD MUST SHOULD be output as HTML conforming to the HTML 4.0 Recommendation [HTML]. If the processor serializer does not support the version of HTML specified by the version parameter, it MUST signal a serialization error.