1 | <?xml version='1.0' encoding='ISO-8859-1'?>
|
---|
2 |
|
---|
3 | <!--
|
---|
4 | $LastChangedBy$
|
---|
5 | $Date$
|
---|
6 | -->
|
---|
7 |
|
---|
8 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
9 | xmlns="http://www.w3.org/1999/xhtml"
|
---|
10 | version="1.0">
|
---|
11 |
|
---|
12 | <xsl:import href="blfs-chunked1.xsl"/>
|
---|
13 |
|
---|
14 | <!-- Handle name and date in info section as a footnote -->
|
---|
15 |
|
---|
16 | <xsl:template name="process.footnotes">
|
---|
17 | <xsl:variable name="footnotes" select=".//footnote"/>
|
---|
18 | <xsl:variable name="fcount">
|
---|
19 | <xsl:call-template name="count.footnotes.in.this.chunk">
|
---|
20 | <xsl:with-param name="node" select="."/>
|
---|
21 | <xsl:with-param name="footnotes" select="$footnotes"/>
|
---|
22 | </xsl:call-template>
|
---|
23 | </xsl:variable>
|
---|
24 |
|
---|
25 | <!-- Only bother to do this if there's at least one non-table footnote -->
|
---|
26 | <xsl:if test="$fcount > 0">
|
---|
27 | <div class="footnotes">
|
---|
28 | <br/>
|
---|
29 | <hr width="100" align="left"/>
|
---|
30 | <xsl:call-template name="process.footnotes.in.this.chunk">
|
---|
31 | <xsl:with-param name="node" select="."/>
|
---|
32 | <xsl:with-param name="footnotes" select="$footnotes"/>
|
---|
33 | </xsl:call-template>
|
---|
34 | </div>
|
---|
35 | </xsl:if>
|
---|
36 |
|
---|
37 | <!-- Add this to the footnotes -->
|
---|
38 | <xsl:apply-templates select='prefaceinfo|chapterinfo|sect1info|./sect1[1]/sect1info' mode='attribution'/>
|
---|
39 | </xsl:template>
|
---|
40 |
|
---|
41 | <xsl:template match='prefaceinfo|chapterinfo|sect1info' mode='attribution'>
|
---|
42 | <p class='updated'> Last updated <!-- by
|
---|
43 | <xsl:apply-templates select="othername" mode='attribution'/> -->
|
---|
44 | on
|
---|
45 | <xsl:apply-templates select="date" mode='attribution'/>
|
---|
46 | </p>
|
---|
47 | </xsl:template>
|
---|
48 |
|
---|
49 | <xsl:template match='othername' mode='attribution'>
|
---|
50 | <xsl:variable name='author'>
|
---|
51 | <xsl:value-of select='.'/>
|
---|
52 | </xsl:variable>
|
---|
53 | <xsl:variable name='nameonly'>
|
---|
54 | <xsl:value-of select='substring($author,16)'/>
|
---|
55 | </xsl:variable>
|
---|
56 | <xsl:value-of select="substring-before($nameonly,'$')" />
|
---|
57 | </xsl:template>
|
---|
58 |
|
---|
59 | <xsl:template match='date' mode='attribution'>
|
---|
60 | <xsl:variable name='date'>
|
---|
61 | <xsl:value-of select='.'/>
|
---|
62 | </xsl:variable>
|
---|
63 | <xsl:value-of select="substring($date,7,26)" />
|
---|
64 | </xsl:template>
|
---|
65 |
|
---|
66 | </xsl:stylesheet>
|
---|