summaryrefslogtreecommitdiff
path: root/doc/doc-docbook/MyTitlepage.templates.xml
blob: d2da77d5be417fc5bbd702ba0dc8236c20036c77 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE t:templates [
<!ENTITY hsize0 "10pt">
<!ENTITY hsize1 "12pt">
<!ENTITY hsize2 "14.4pt">
<!ENTITY hsize3 "17.28pt">
<!ENTITY hsize4 "20.736pt">
<!ENTITY hsize5 "24.8832pt">
<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 -->
<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 -->
<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 -->
<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 -->
]>

<!-- $Cambridge: exim/doc/doc-docbook/MyTitlepage.templates.xml,v 1.2 2006/02/01 11:01:01 ph10 Exp $ -->

<!-- This document is copied from the DocBook XSL stylesheets, and modified to
do what I want it to do for the Exim reference manual. Process this document
with:

xsltproc -output MyTitleStyle.xsl \
  /usr/share/sgml/docbook/xsl-stylesheets-1.68.1/template/titlepage.xsl \
  MyTitlepage.templates.xml

in order to generate a style sheet called MyTitleStyle.xsl. That is then
included in my customization stylesheet. What a lot of heavyweight apparatus we
need to set up! -->


<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0"
             xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param"
             xmlns:fo="http://www.w3.org/1999/XSL/Format"
             xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!-- ********************************************************************
     $Id: titlepage.templates.xml,v 1.23 2003/12/16 00:30:49 bobstayton Exp $
     ********************************************************************

     This file is part of the DocBook XSL Stylesheet distribution.
     See ../README or http://docbook.sf.net/ for copyright
     and other information.

     ******************************************************************** -->

<!-- ==================================================================== -->

  <t:titlepage t:element="book" t:wrapper="fo:block">
    <t:titlepage-content t:side="recto">
      <title
             t:named-template="division.title"
             param:node="ancestor-or-self::book[1]"
             text-align="center"
             font-size="&hsize5;"
             space-before="5em"
             font-weight="bold"
             font-family="{$title.fontset}"/>
      <subtitle
                text-align="center"
                font-size="&hsize4;"
                space-before="&hsize4space;"
                font-family="{$title.fontset}"/>
      <corpauthor font-size="&hsize3;"
                  keep-with-next="always"
                  space-before="2in"/>
      <authorgroup space-before="2in"/>
      <author font-size="&hsize3;"
              space-before="&hsize2space;"
              keep-with-next="always"/>
      <affiliation space-before="1em"/>
    </t:titlepage-content>

  <t:titlepage-content t:side="verso">
      <title
             t:named-template="book.verso.title"
             font-size="&hsize2;"
             font-weight="bold"
             font-family="{$title.fontset}"/>
      <corpauthor/>
      <authorgroup t:named-template="verso.authorgroup"/>
      <author space-before="1em"/>
      <affiliation space-before="1em"/>
      <address/>
      <pubdate space-before="1em"/>
      <abstract/>
      <copyright space-before="1em"/>
      <revhistory space-before="1em"/>
      <legalnotice font-size="8pt"/>
  </t:titlepage-content>

<!-- This change stops it putting a blank page after the verso -->
  <t:titlepage-separator>
<!--      <fo:block break-after="page"/> -->
  </t:titlepage-separator>

  <t:titlepage-before t:side="recto">
  </t:titlepage-before>

  <t:titlepage-before t:side="verso">
      <fo:block break-after="page"/>
  </t:titlepage-before>
</t:titlepage>

</t:templates>