source: stylesheets/blfs-chunked.xsl@ 8e37798

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 8e37798 was 276015d2, checked in by Randy McMurchy <randy@…>, 17 years ago

Added the LastChangedBy and Date keywords then set the corresponding keyword property on each file in the repo

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6430 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<!--
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 &gt; 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>
Note: See TracBrowser for help on using the repository browser.