/[drupal]/contributions/modules/membership/titlepage-hacks.xsl
ViewVC logotype

Diff of /contributions/modules/membership/titlepage-hacks.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Tue May 6 09:00:44 2008 UTC revision 1.1.2.1, Tue May 6 09:00:44 2008 UTC
# Line 0  Line 1 
1    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2            xmlns:fo="http://www.w3.org/1999/XSL/Format"
3            version="1.0">
4            <xsl:import href="file:///usr/share/xml/docbook/fo/docbook.xsl"/>
5    
6            <xsl:param name="paper.type" select="'A4'"/>
7            <xsl:param name="draft.mode" select="'no'"/>
8            <xsl:param name="sans.font.family" select="'DejaVuSans'"/>
9            <xsl:param name="title.font.family" select="'DejaVuSans'"/>
10            <xsl:param name="body.font.family" select="'DejaVuSerif'"/>
11            <xsl:param name="dingbat.font.family" select="'DejaVuSerif'"/>
12            <xsl:param name="monospace.font.family" select="'DejaVuSansMono'"/>
13    
14            <xsl:template match="revhistory/revision" mode="titlepage.mode">
15                    <xsl:variable name="revnumber" select="revnumber"/>
16                    <xsl:variable name="revdate"   select="date"/>
17                    <xsl:variable name="revauthor" select="authorinitials|author"/>
18                    <xsl:variable name="revremark" select="revremark|revdescription"/>
19                    <fo:table-row>
20                            <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
21                                    <fo:block>
22                                            <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
23                                    </fo:block>
24                                    <fo:block>
25                                            <xsl:if test="$revnumber">
26                                                    <xsl:call-template name="gentext">
27                                                            <xsl:with-param name="key" select="'Revision'"/>
28                                                    </xsl:call-template>
29                                                    <xsl:text>: </xsl:text>
30                                                    <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
31                                            </xsl:if>
32                                    </fo:block>
33                            </fo:table-cell>
34                    </fo:table-row>
35                    <xsl:if test="$revremark">
36                            <fo:table-row>
37                                    <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
38                                            <fo:block>
39                                                    <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
40                                            </fo:block>
41                                    </fo:table-cell>
42                            </fo:table-row>
43                    </xsl:if>
44            </xsl:template>
45    
46            <xsl:template match="revhistory" mode="titlepage.mode">
47                    <xsl:variable name="explicit.table.width">
48                            <xsl:call-template name="pi.dbfo_table-width"/>
49                    </xsl:variable>
50                    <xsl:variable name="table.width">
51                            <xsl:choose>
52                                    <xsl:when test="$explicit.table.width != ''">
53                                            <xsl:value-of select="$explicit.table.width"/>
54                                    </xsl:when>
55                                    <xsl:when test="$default.table.width = ''">
56                                            <xsl:text>100%</xsl:text>
57                                    </xsl:when>
58                                    <xsl:otherwise>
59                                            <xsl:value-of select="$default.table.width"/>
60                                    </xsl:otherwise>
61                            </xsl:choose>
62                    </xsl:variable>
63                    <fo:table table-layout="fixed" width="{$table.width}" xsl:use-attribute-sets="revhistory.table.properties">
64                            <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
65                            <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
66                            <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
67                            <fo:table-body start-indent="0pt" end-indent="0pt">
68                                    <fo:table-row>
69                                            <fo:table-cell number-columns-spanned="3" xsl:use-attribute-sets="revhistory.table.cell.properties">
70                                                    <fo:block xsl:use-attribute-sets="revhistory.title.properties">
71                                                            <!--<xsl:call-template name="gentext">
72                                                                    <xsl:with-param name="key" select="'RevHistory'"/>
73                                                            </xsl:call-template>-->
74                                                    </fo:block>
75                                            </fo:table-cell>
76                                    </fo:table-row>
77                                    <xsl:apply-templates mode="titlepage.mode"/>
78                            </fo:table-body>
79                    </fo:table>
80            </xsl:template>
81    </xsl:stylesheet>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2