trying to get HEAD building again. If you want the code
[metze/samba/wip.git] / docs / docbook / xslt / db2latex / footnote.mod.xsl
1 <?xml version='1.0'?>
2 <!--############################################################################# 
3 |- #############################################################################
4 |                                                                                                               
5 |   PURPOSE:
6 + ############################################################################## -->
7 <xsl:stylesheet 
8     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9     xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
10     exclude-result-prefixes="doc" version='1.0'>
11
12
13
14     <!--############################################################################# -->
15     <!-- DOCUMENTATION                                                                -->
16     <doc:reference id="footnote" xmlns="">
17         <referenceinfo>
18             <releaseinfo role="meta">
19             </releaseinfo>
20         <authorgroup>
21             <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
22             <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
23         </authorgroup>
24             <copyright>
25                 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
26                 <holder>Ramon Casellas</holder>
27             </copyright>
28         </referenceinfo>
29         <title>FootNotes <filename>footnote.mod.xsl</filename></title>
30         <partintro>
31             <section><title>Introduction</title>
32                 <para></para>
33             </section>
34         </partintro>
35     </doc:reference>
36     <!--############################################################################# -->
37
38
39
40     <xsl:template match="footnote">
41         <xsl:call-template name="label.id"/>
42         <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text>
43         <xsl:apply-templates/>
44         <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
45         <xsl:call-template name="generate.label.id"/>
46         <xsl:text>}</xsl:text>
47     </xsl:template>
48
49         <doc:template name="footnote">
50                 <refpurpose>Construct a footnote that copes with URLs</refpurpose>
51                 <refdescription><para>This template exists in this file so that all
52                 the footnote-generating templates are close to each other. However,
53                 it is actually a part of the ulink template in xref.mod.xsl</para></refdescription>
54         </doc:template>
55     <xsl:template name="footnote">
56         <xsl:param name="hyphenation"/>
57         <xsl:param name="url"/>
58         <xsl:call-template name="label.id"/>
59         <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text>
60         <xsl:call-template name="generate.typeset.url">
61                 <xsl:with-param name="hyphenation" select="$hyphenation"/>
62                 <xsl:with-param name="url" select="$url"/>
63         </xsl:call-template>
64         <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
65         <xsl:call-template name="generate.label.id"/>
66         <xsl:text>}</xsl:text>
67     </xsl:template>
68
69     <xsl:template match="footnote/para">
70         <xsl:apply-templates/>
71         <xsl:text>&#10;&#10;</xsl:text>
72     </xsl:template>
73
74
75     <xsl:template match="footnoteref">
76         <xsl:variable name="footnote" select="id(@linkend)"/>
77         <xsl:text>\docbooktolatexusefootnoteref{</xsl:text>
78         <xsl:value-of select="@linkend"/>
79         <xsl:text>}</xsl:text>
80     </xsl:template>
81
82 </xsl:stylesheet>