Fix TOC in HTML version of manual.
[dcpomatic.git] / doc / manual / dcpomatic-html.xsl
index 144675d47503eb7032dc837a30855820381437da..bfd0c55d34b950261817ee140ef9a589f2d470b6 100644 (file)
@@ -9,4 +9,20 @@
 <!-- I can't fathom xmlto's logic with image scaling, so I've turned it off -->
 <xsl:param name="ignore.image.scaling" select="1"/>
 
+<xsl:param name="generate.toc" select="'book toc'"/>
+
+<!-- <note> in a div with no heading -->
+<xsl:template name="note.frobozz">
+  <xsl:param name="content">
+    <xsl:apply-templates/>
+  </xsl:param>
+  <xsl:text disable-output-escaping="yes">&lt;div class="note"&gt;</xsl:text>
+  <xsl:copy-of select="$content"/>
+  <xsl:text disable-output-escaping="yes">&lt;/div&gt;</xsl:text>
+</xsl:template>
+
+<xsl:template match="note">
+  <xsl:call-template name="note.frobozz"/>
+</xsl:template>
+
 </xsl:stylesheet>