This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[ira/wip.git] / docs / docbook / xslt / db2latex / footnote.mod.xsl
1 <?xml version='1.0'?>
2 <!--############################################################################# 
3 |       $Id: footnote.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
4 |- #############################################################################
5 |       $Author: ab $
6 |                                                                                                               
7 |   PURPOSE:
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
15
16     <!--############################################################################# -->
17     <!-- DOCUMENTATION                                                                -->
18     <doc:reference id="footnote" xmlns="">
19         <referenceinfo>
20             <releaseinfo role="meta">
21                 $Id: footnote.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
22             </releaseinfo>
23         <authorgroup>
24             <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
25             <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
26         </authorgroup>
27             <copyright>
28                 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
29                 <holder>Ramon Casellas</holder>
30             </copyright>
31         </referenceinfo>
32         <title>FootNotes <filename>footnote.mod.xsl</filename></title>
33         <partintro>
34             <section><title>Introduction</title>
35                 <para></para>
36             </section>
37         </partintro>
38     </doc:reference>
39     <!--############################################################################# -->
40
41
42
43     <xsl:template match="footnote">
44         <xsl:call-template name="label.id"/>
45         <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text>
46         <xsl:apply-templates/>
47         <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
48         <xsl:call-template name="generate.label.id"/>
49         <xsl:text>}</xsl:text>
50     </xsl:template>
51
52         <doc:template name="footnote">
53                 <refpurpose>Construct a footnote that copes with URLs</refpurpose>
54                 <refdescription><para>This template exists in this file so that all
55                 the footnote-generating templates are close to each other. However,
56                 it is actually a part of the ulink template in xref.mod.xsl</para></refdescription>
57         </doc:template>
58     <xsl:template name="footnote">
59         <xsl:param name="hyphenation"/>
60         <xsl:param name="url"/>
61         <xsl:call-template name="label.id"/>
62         <xsl:text>\begingroup\catcode`\#=12\footnote{</xsl:text>
63         <xsl:call-template name="generate.typeset.url">
64                 <xsl:with-param name="hyphenation" select="$hyphenation"/>
65                 <xsl:with-param name="url" select="$url"/>
66         </xsl:call-template>
67         <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
68         <xsl:call-template name="generate.label.id"/>
69         <xsl:text>}</xsl:text>
70     </xsl:template>
71
72     <xsl:template match="footnote/para">
73         <xsl:apply-templates/>
74         <xsl:text>&#10;&#10;</xsl:text>
75     </xsl:template>
76
77
78     <xsl:template match="footnoteref">
79         <xsl:variable name="footnote" select="id(@linkend)"/>
80         <xsl:text>\docbooktolatexusefootnoteref{</xsl:text>
81         <xsl:value-of select="@linkend"/>
82         <xsl:text>}</xsl:text>
83     </xsl:template>
84
85 </xsl:stylesheet>