Use system-provided dblatex to build the docs rather than included
[jra/samba/.git] / docs-xml / xslt / db2latex-xsl / xsl / msgset.mod.xsl
1 <?xml version='1.0'?>
2 <!DOCTYPE xsl:stylesheet [ <!ENTITY % xsldoc.ent SYSTEM "./xsldoc.ent"> %xsldoc.ent; ]>
3 <!--############################################################################# 
4 |       $Id: msgset.mod.xsl,v 1.2 2004/01/01 14:04:58 j-devenish Exp $
5 |- #############################################################################
6 |       $Author: j-devenish $
7 + ############################################################################## -->
8
9 <xsl:stylesheet
10         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11         xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
12         exclude-result-prefixes="doc" version='1.0'>
13
14         <doc:reference id="msgset" xmlns="">
15                 <referenceinfo>
16                         <releaseinfo role="meta">
17                                 $Id: msgset.mod.xsl,v 1.2 2004/01/01 14:04:58 j-devenish Exp $
18                         </releaseinfo>
19                         <authorgroup>
20                                 &ramon;
21                                 &james;
22                         </authorgroup>
23                         <copyright>
24                                 <year>2000</year><year>2001</year><year>2002</year><year>2003</year><year>2004</year>
25                                 <holder>Ramon Casellas</holder>
26                         </copyright>
27                         <revhistory>
28                                 <doc:revision rcasver="1.2">&rev_2003_05;</doc:revision>
29                         </revhistory>
30                 </referenceinfo>
31                 <title>Message Sets <filename>msgset.mod.xsl</filename></title>
32                 <partintro>
33                         <para>
34                         
35                         
36                         </para>
37                 </partintro>
38         </doc:reference>
39
40         <doc:template xmlns="">
41                 <refpurpose>Process <doc:db>msgset</doc:db> elements</refpurpose>
42                 <doc:description>
43                         <para>
44                         
45                         Applies templates.
46                         
47                         </para>
48                 </doc:description>
49                 <doc:variables>
50                         &no_var;
51                 </doc:variables>
52                 <doc:samples>
53                         <simplelist type='inline'>
54                                 &test_book;
55                         </simplelist>
56                 </doc:samples>
57         </doc:template>
58         <xsl:template match="msgset">
59                 <xsl:apply-templates/>
60         </xsl:template>
61
62         <doc:template xmlns="">
63                 <refpurpose>Process <doc:db>msgentry</doc:db> elements</refpurpose>
64                 <doc:description>
65                         <para>
66                                 Formats a block object using <xref linkend="template.block.object"/>.
67                         </para>
68                 </doc:description>
69                 <doc:variables>
70                         &no_var;
71                 </doc:variables>
72         </doc:template>
73         <xsl:template match="msgentry">
74                 <xsl:call-template name="block.object"/>
75         </xsl:template>
76
77         <doc:template xmlns="">
78                 <refpurpose>Process <doc:db>simplemsgentry</doc:db> elements</refpurpose>
79                 <doc:description>
80                         <para>
81                                 Formats a block object using <xref linkend="template.block.object"/>.
82                         </para>
83                 </doc:description>
84                 <doc:variables>
85                         &no_var;
86                 </doc:variables>
87         </doc:template>
88         <xsl:template match="simplemsgentry">
89                 <xsl:call-template name="block.object"/>
90         </xsl:template>
91
92         <doc:template xmlns="">
93                 <refpurpose>Process <doc:db>msg</doc:db> elements</refpurpose>
94                 <doc:description>
95                         <para>
96                                 Formats a block object using <xref linkend="template.block.object"/>.
97                         </para>
98                 </doc:description>
99                 <doc:variables>
100                         &no_var;
101                 </doc:variables>
102         </doc:template>
103         <xsl:template match="msg">
104                 <xsl:call-template name="block.object"/>
105         </xsl:template>
106
107         <doc:template xmlns="">
108                 <refpurpose>Process <doc:db>msgmain</doc:db> elements</refpurpose>
109                 <doc:description>
110                         <para>
111                                 Formats a block object using <xref linkend="template.block.object"/>.
112                         </para>
113                 </doc:description>
114                 <doc:variables>
115                         &no_var;
116                 </doc:variables>
117         </doc:template>
118         <xsl:template match="msgmain">
119                 <xsl:apply-templates/>
120         </xsl:template>
121
122         <doc:template xmlns="">
123                 <refpurpose>Process <doc:db>msgmain</doc:db>'s <doc:db>title</doc:db> elements</refpurpose>
124                 <doc:description>
125                         <para>
126                                 Applies templates inside a <function condition="latex">textbf</function> command.
127                         </para>
128                 </doc:description>
129                 <doc:variables>
130                         &no_var;
131                 </doc:variables>
132         </doc:template>
133         <xsl:template match="msgmain/title|msgsub/title|msgrel/title">
134                 <xsl:text>{\textbf{</xsl:text>
135                 <xsl:apply-templates/>
136                 <xsl:text>}} </xsl:text>
137         </xsl:template>
138
139         <doc:template xmlns="">
140                 <refpurpose>Process <doc:db>msgsub</doc:db> elements</refpurpose>
141                 <doc:description>
142                         <para>
143                                 Applies templates.
144                         </para>
145                 </doc:description>
146                 <doc:variables>
147                         &no_var;
148                 </doc:variables>
149         </doc:template>
150         <xsl:template match="msgsub">
151                 <xsl:apply-templates/>
152         </xsl:template>
153
154         <doc:template xmlns="">
155                 <refpurpose>Process <doc:db>msgrel</doc:db> elements</refpurpose>
156                 <doc:description>
157                         <para>
158                                 Applies templates.
159                         </para>
160                 </doc:description>
161                 <doc:variables>
162                         &no_var;
163                 </doc:variables>
164         </doc:template>
165         <xsl:template match="msgrel">
166                 <xsl:apply-templates/>
167         </xsl:template>
168
169         <doc:template xmlns="">
170                 <refpurpose>Process <doc:db>msgtext</doc:db> elements</refpurpose>
171                 <doc:description>
172                         <para>
173                                 Applies templates.
174                         </para>
175                 </doc:description>
176                 <doc:variables>
177                         &no_var;
178                 </doc:variables>
179         </doc:template>
180         <xsl:template match="msgtext">
181                 <xsl:apply-templates/>
182         </xsl:template>
183
184         <doc:template xmlns="">
185                 <refpurpose>Process <doc:db>msginfo</doc:db> elements</refpurpose>
186                 <doc:description>
187                         <para>
188                                 Formats a block object using <xref linkend="template.block.object"/>.
189                         </para>
190                 </doc:description>
191                 <doc:variables>
192                         &no_var;
193                 </doc:variables>
194         </doc:template>
195         <xsl:template match="msginfo">
196                 <xsl:call-template name="block.object"/>
197         </xsl:template>
198
199         <!-- localised -->
200         <doc:template xmlns="">
201                 <refpurpose>Process <doc:db>msglevel</doc:db>, <doc:db>msgorig</doc:db> and <doc:db>msgaud</doc:db> elements</refpurpose>
202                 <doc:description>
203                         <para>
204                                 Applies templates as a block, preceded by gentext inside a
205                                 <function condition="latex">textbf</function> command.
206                         </para>
207                 </doc:description>
208                 <doc:variables>
209                         &no_var;
210                 </doc:variables>
211         </doc:template>
212         <xsl:template match="msglevel|msgorig|msgaud">
213                 <xsl:text>&#10;</xsl:text>
214                 <xsl:text>{\textbf{</xsl:text>
215                 <xsl:call-template name="gentext.element.name"/>
216                 <xsl:text>: </xsl:text>
217                 <xsl:text>}} </xsl:text>
218                 <xsl:apply-templates/>
219                 <xsl:text>&#10;</xsl:text>
220         </xsl:template>
221
222         <doc:template xmlns="">
223                 <refpurpose>Process <doc:db>msgexplan</doc:db> elements</refpurpose>
224                 <doc:description>
225                         <para>
226                                 Formats a block object using <xref linkend="template.block.object"/>.
227                         </para>
228                 </doc:description>
229                 <doc:variables>
230                         &no_var;
231                 </doc:variables>
232         </doc:template>
233         <xsl:template match="msgexplan">
234                 <xsl:call-template name="block.object"/>
235         </xsl:template>
236
237 </xsl:stylesheet>