source: stylesheets/blfs-chunked.xsl@ 4a7621f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 4a7621f was 3fe8b511, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Update stylesheets and fix Python references

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3217 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.1 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
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
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 &gt; 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>
31
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,'$')" />
52 </xsl:template>
53
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>
60
61</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.