a8a65cfc8867c9d1d8a869960e4d453cd3edbbf9
[dcpomatic.git] / doc / manual / dcpomatic-html.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 xmlns:fo="http://www.w3.org/1999/XSL/Format"
4                 version="1.0">
5
6 <!-- Our CSS -->
7 <xsl:param name="html.stylesheet" select="'dcpomatic.css'"/>
8
9 <!-- I can't fathom xmlto's logic with image scaling, so I've turned it off -->
10 <xsl:param name="ignore.image.scaling" select="1"/>
11
12 <xsl:param name="generate.toc">article</xsl:param>
13 <xsl:param name="generate.toc">book</xsl:param>
14
15 <!-- <note> in a div with no heading -->
16 <xsl:template name="note.frobozz">
17   <xsl:param name="content">
18     <xsl:apply-templates/>
19   </xsl:param>
20   <xsl:text disable-output-escaping="yes">&lt;div class="note"&gt;</xsl:text>
21   <xsl:copy-of select="$content"/>
22   <xsl:text disable-output-escaping="yes">&lt;/div&gt;</xsl:text>
23 </xsl:template>
24
25 <xsl:template match="note">
26   <xsl:call-template name="note.frobozz"/>
27 </xsl:template>
28
29 </xsl:stylesheet>