[5d4975d] | 1 | <?xml version='1.0' encoding='ISO-8859-1'?>
|
---|
| 2 |
|
---|
[276015d2] | 3 | <!--
|
---|
| 4 | $LastChangedBy$
|
---|
| 5 | $Date$
|
---|
| 6 | -->
|
---|
| 7 |
|
---|
[eff3826] | 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 |
|
---|
[3fe8b511] | 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>
|
---|
[845e9193] | 24 |
|
---|
[3fe8b511] | 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>
|
---|
[845e9193] | 36 |
|
---|
[3fe8b511] | 37 | <!-- Add this to the footnotes -->
|
---|
[862f2e3] | 38 | <xsl:apply-templates select='prefaceinfo|chapterinfo|sect1info|./sect1[1]/sect1info' mode='attribution'/>
|
---|
[3fe8b511] | 39 | </xsl:template>
|
---|
| 40 |
|
---|
| 41 | <xsl:template match='prefaceinfo|chapterinfo|sect1info' mode='attribution'>
|
---|
[862f2e3] | 42 | <p class='updated'> Last updated <!-- by
|
---|
[3fe8b511] | 43 | <xsl:apply-templates select="othername" mode='attribution'/> -->
|
---|
[862f2e3] | 44 | on
|
---|
[845e9193] | 45 | <xsl:apply-templates select="date" mode='attribution'/>
|
---|
[3fe8b511] | 46 | </p>
|
---|
| 47 | </xsl:template>
|
---|
| 48 |
|
---|
[845e9193] | 49 | <xsl:template match='othername' mode='attribution'>
|
---|
[3fe8b511] | 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,'$')" />
|
---|
[845e9193] | 57 | </xsl:template>
|
---|
[eff3826] | 58 |
|
---|
[845e9193] | 59 | <xsl:template match='date' mode='attribution'>
|
---|
[3fe8b511] | 60 | <xsl:variable name='date'>
|
---|
| 61 | <xsl:value-of select='.'/>
|
---|
| 62 | </xsl:variable>
|
---|
| 63 | <xsl:value-of select="substring($date,7,26)" />
|
---|
[845e9193] | 64 | </xsl:template>
|
---|
[0459c559] | 65 |
|
---|
[eff3826] | 66 | </xsl:stylesheet>
|
---|