summaryrefslogtreecommitdiff
path: root/doc/manual/dcpomatic-html.xsl
blob: bfd0c55d34b950261817ee140ef9a589f2d470b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:fo="http://www.w3.org/1999/XSL/Format"
                version="1.0">

<!-- Our CSS -->
<xsl:param name="html.stylesheet" select="'dcpomatic.css'"/>

<!-- 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>