+ <!-- Bibliography and acknowledgements are formatted as numberless
+ chapters — And the easiest way to achieve it was abusing the
+ "Appendix" definition. -->
+ <xsl:template match="appendix">
+ <xsl:param name="content">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:param name="title">
+ <xsl:apply-templates/>
+ </xsl:param>
+ <xsl:text>\chapter*{</xsl:text>
+ <xsl:copy-of select="title"/>
+ <xsl:text>}</xsl:text>
+ <xsl:text>\addcontentsline{toc}{chapter}{</xsl:text>
+ <xsl:copy-of select="title"/>
+ <xsl:text>}</xsl:text>
+ <xsl:copy-of select="$content"/>
+ </xsl:template>
+