xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
- method="html" encoding="utf-8" indent="yes"
+ method="xml" encoding="utf-8" indent="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="title">
<xsl:param name="level" select="1"/>
- <xsl:element name="span">
+ <xsl:element name="{concat('h', $level)}">
<xsl:attribute name="class">
<xsl:value-of select="concat('title', $level)"/>
</xsl:attribute>