2 <!--#############################################################################
3 | $Id: footnote.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
4 |- #############################################################################
8 + ############################################################################## -->
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'>
16 <!--############################################################################# -->
17 <!-- DOCUMENTATION -->
18 <doc:reference id="footnote" xmlns="">
20 <releaseinfo role="meta">
21 $Id: footnote.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
24 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
25 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
28 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
29 <holder>Ramon Casellas</holder>
32 <title>FootNotes <filename>footnote.mod.xsl</filename></title>
34 <section><title>Introduction</title>
39 <!--############################################################################# -->
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>
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>
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"/>
67 <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
68 <xsl:call-template name="generate.label.id"/>
69 <xsl:text>}</xsl:text>
72 <xsl:template match="footnote/para">
73 <xsl:apply-templates/>
74 <xsl:text> </xsl:text>
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>