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