2 <!--#############################################################################
3 |- #############################################################################
6 + ############################################################################## -->
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'>
14 <!--############################################################################# -->
15 <!-- DOCUMENTATION -->
16 <doc:reference id="footnote" xmlns="">
18 <releaseinfo role="meta">
21 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
22 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
25 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
26 <holder>Ramon Casellas</holder>
29 <title>FootNotes <filename>footnote.mod.xsl</filename></title>
31 <section><title>Introduction</title>
36 <!--############################################################################# -->
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>
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>
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"/>
64 <xsl:text>}\endgroup\docbooktolatexmakefootnoteref{</xsl:text>
65 <xsl:call-template name="generate.label.id"/>
66 <xsl:text>}</xsl:text>
69 <xsl:template match="footnote/para">
70 <xsl:apply-templates/>
71 <xsl:text> </xsl:text>
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>