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