d8fd8c10c21ea551c114696214ecb234aa1c9a62
[samba.git] / docs / docbook / xslt / db2latex / component.mod.xsl
1 <?xml version='1.0'?>
2 <!--############################################################################# 
3 |       $Id: component.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
4 |- #############################################################################
5 |       $Author: jelmer $
6 |                                                                                                               
7 |   PURPOSE:
8 + ############################################################################## -->
9
10 <xsl:stylesheet 
11     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12     xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
13     exclude-result-prefixes="doc" version='1.0'>
14
15
16
17     <!--############################################################################# -->
18     <!-- DOCUMENTATION                                                                -->
19     <doc:reference id="component" xmlns="">
20         <referenceinfo>
21             <releaseinfo role="meta">
22                 $Id: component.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
23             </releaseinfo>
24             <authorgroup>
25             <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
26             <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
27             </authorgroup>
28             <copyright>
29                 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
30                 <holder>Ramon Casellas</holder>
31             </copyright>
32         </referenceinfo>
33
34         <title>Component <filename>component.mod.xsl</filename></title>
35         <partintro>
36             <section><title>Introduction</title>
37                 <para></para>
38             </section>
39         </partintro>
40     </doc:reference>
41
42
43
44
45     <xsl:template name="component.title">
46         <xsl:variable name="id">
47             <xsl:call-template name="label.id"><xsl:with-param name="object" select="."/></xsl:call-template>
48         </xsl:variable>
49         <xsl:text>&#10;{\sc </xsl:text><xsl:apply-templates select="." mode="title.ref"/><xsl:text>}</xsl:text>
50     </xsl:template>
51
52
53
54     <xsl:template name="component.subtitle">
55         <xsl:variable name="subtitle"><xsl:apply-templates select="." mode="subtitle.content"/></xsl:variable>
56         <xsl:if test="$subtitle != ''">
57             <xsl:text>&#10;{\sc </xsl:text><xsl:copy-of select="$subtitle"/><xsl:text>}</xsl:text>
58         </xsl:if>
59     </xsl:template>
60
61
62
63     <xsl:template name="component.separator">
64     </xsl:template>
65
66
67
68     <xsl:template match="colophon">
69         <xsl:variable name="id"><xsl:call-template name="label.id"/></xsl:variable>
70         <xsl:call-template name="component.separator"/>
71         <xsl:call-template name="component.title"/>
72         <xsl:call-template name="component.subtitle"/>
73         <xsl:apply-templates/>
74     </xsl:template>
75    
76
77         <xsl:template match="colophon/title"/>
78
79
80
81     <xsl:template match="bibliography" mode="component.number">
82         <xsl:param name="add.space" select="false()"/>
83     </xsl:template>
84
85     <xsl:template match="glossary" mode="component.number">
86         <xsl:param name="add.space" select="false()"/>
87     </xsl:template>
88
89     <xsl:template match="index" mode="component.number">
90         <xsl:param name="add.space" select="false()"/>
91     </xsl:template>
92
93 </xsl:stylesheet>
94