Changeset 4685d1c for stylesheets/blfs-chunked.xsl
- Timestamp:
- 07/07/2007 10:24:03 AM (17 years ago)
- Branches:
- 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
- Children:
- 65b2904
- Parents:
- 8e37798
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/blfs-chunked.xsl
r8e37798 r4685d1c 10 10 version="1.0"> 11 11 12 <xsl:import href="blfs-chunked1.xsl"/> 12 <!-- LFS top-level chunk templates. --> 13 <xsl:import href="lfs-xsl/chunkfast.xsl"/> 13 14 14 <!-- Handle name and date in info section as a footnote --> 15 <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) --> 16 <xsl:param name="book-type">blfs</xsl:param> 15 17 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> 18 <!-- Are sections enumerated? 1 = yes, 0 = no 19 Note: Activating this will increase a lot rendering time. --> 20 <xsl:param name="section.autolabel" select="0"/> 24 21 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> 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> 22 <!-- Do section labels include the component label? 1 = yes, 0 = no --> 23 <xsl:param name="section.label.includes.component.label" select="0"/> 65 24 66 25 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.