2004-05-08 10:42:12 +08:00
|
|
|
<?xml version='1.0' encoding='ISO-8859-1'?>
|
|
|
|
|
2004-04-13 09:59:18 +08:00
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
version="1.0">
|
|
|
|
|
2005-01-07 13:14:15 +08:00
|
|
|
<xsl:import href="blfs-chunked1.xsl"/>
|
|
|
|
|
|
|
|
<!-- Handle name and date in info section as a footnote -->
|
|
|
|
|
|
|
|
<xsl:template name="process.footnotes">
|
|
|
|
<xsl:variable name="footnotes" select=".//footnote"/>
|
|
|
|
<xsl:variable name="fcount">
|
|
|
|
<xsl:call-template name="count.footnotes.in.this.chunk">
|
|
|
|
<xsl:with-param name="node" select="."/>
|
|
|
|
<xsl:with-param name="footnotes" select="$footnotes"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:variable>
|
2005-05-31 01:47:08 +08:00
|
|
|
|
2005-01-07 13:14:15 +08:00
|
|
|
<!-- Only bother to do this if there's at least one non-table footnote -->
|
|
|
|
<xsl:if test="$fcount > 0">
|
|
|
|
<div class="footnotes">
|
|
|
|
<br/>
|
|
|
|
<hr width="100" align="left"/>
|
|
|
|
<xsl:call-template name="process.footnotes.in.this.chunk">
|
|
|
|
<xsl:with-param name="node" select="."/>
|
|
|
|
<xsl:with-param name="footnotes" select="$footnotes"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</div>
|
|
|
|
</xsl:if>
|
2005-05-31 01:47:08 +08:00
|
|
|
|
2005-01-07 13:14:15 +08:00
|
|
|
<!-- Add this to the footnotes -->
|
2005-07-31 18:26:50 +08:00
|
|
|
<xsl:apply-templates select='prefaceinfo|chapterinfo|sect1info|./sect1[1]/sect1info' mode='attribution'/>
|
2005-01-07 13:14:15 +08:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match='prefaceinfo|chapterinfo|sect1info' mode='attribution'>
|
2005-07-31 18:26:50 +08:00
|
|
|
<p class='updated'> Last updated <!-- by
|
2005-01-07 13:14:15 +08:00
|
|
|
<xsl:apply-templates select="othername" mode='attribution'/> -->
|
2005-07-31 18:26:50 +08:00
|
|
|
on
|
2005-05-31 01:47:08 +08:00
|
|
|
<xsl:apply-templates select="date" mode='attribution'/>
|
2005-01-07 13:14:15 +08:00
|
|
|
</p>
|
|
|
|
</xsl:template>
|
|
|
|
|
2005-05-31 01:47:08 +08:00
|
|
|
<xsl:template match='othername' mode='attribution'>
|
2005-01-07 13:14:15 +08:00
|
|
|
<xsl:variable name='author'>
|
|
|
|
<xsl:value-of select='.'/>
|
|
|
|
</xsl:variable>
|
|
|
|
<xsl:variable name='nameonly'>
|
|
|
|
<xsl:value-of select='substring($author,16)'/>
|
|
|
|
</xsl:variable>
|
|
|
|
<xsl:value-of select="substring-before($nameonly,'$')" />
|
2005-05-31 01:47:08 +08:00
|
|
|
</xsl:template>
|
2004-04-13 09:59:18 +08:00
|
|
|
|
2005-05-31 01:47:08 +08:00
|
|
|
<xsl:template match='date' mode='attribution'>
|
2005-01-07 13:14:15 +08:00
|
|
|
<xsl:variable name='date'>
|
|
|
|
<xsl:value-of select='.'/>
|
|
|
|
</xsl:variable>
|
|
|
|
<xsl:value-of select="substring($date,7,26)" />
|
2005-05-31 01:47:08 +08:00
|
|
|
</xsl:template>
|
2004-05-19 09:42:48 +08:00
|
|
|
|
2004-04-13 09:59:18 +08:00
|
|
|
</xsl:stylesheet>
|