Doc updates for version 1.8.4
[fw/altos] / doc / footer.templates.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                 xmlns:d="http://docbook.org/ns/docbook"
5                 version="1.0">
6
7 <xsl:template name="footer.content">
8   <xsl:param name="pageclass" select="''"/>
9   <xsl:param name="sequence" select="''"/>
10   <xsl:param name="position" select="''"/>
11   <xsl:param name="gentext-key" select="''"/>
12
13 <!--
14   <fo:block>
15     <xsl:value-of select="$pageclass"/>
16     <xsl:text>, </xsl:text>
17     <xsl:value-of select="$sequence"/>
18     <xsl:text>, </xsl:text>
19     <xsl:value-of select="$position"/>
20     <xsl:text>, </xsl:text>
21     <xsl:value-of select="$gentext-key"/>
22   </fo:block>
23 -->
24
25   <fo:block>
26     <!-- pageclass can be front, body, back -->
27     <!-- sequence can be odd, even, first, blank -->
28     <!-- position can be left, center, right -->
29     <xsl:choose>
30       <xsl:when test="$pageclass = 'titlepage'">
31         <!-- nop; no footer on title pages -->
32       </xsl:when>
33
34       <xsl:when test="$position='right'">
35         <fo:page-number/>
36       </xsl:when>
37
38       <xsl:when test="$position='left'">
39         <fo:block font-size="10">
40           <xsl:value-of select="//legalnotice"/>
41         </fo:block>
42       </xsl:when>
43
44       <xsl:otherwise>
45         <!-- nop -->
46       </xsl:otherwise>
47     </xsl:choose>
48   </fo:block>
49 </xsl:template>
50
51 </xsl:stylesheet>
52