Changeset 3fe8b511 for stylesheets/blfs-chunked.xsl
- Timestamp:
- 01/07/2005 05:14:15 AM (19 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 6.0, 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/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/python-mods, qt5new, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- d8dc77a
- Parents:
- bad8b53
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/blfs-chunked.xsl
rbad8b53 r3fe8b511 1 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org>4 Based on the original lfs-chunked.xsl created by Matthew Burgess -->5 2 6 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 8 5 version="1.0"> 9 6 10 <!-- We use XHTML --> 11 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/chunk.xsl"/> 12 <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> 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> 13 31 14 <!-- Including our others customized templates --> 15 <xsl:include href="xhtml/lfs-admon.xsl"/> 16 <xsl:include href="xhtml/lfs-index.xsl"/> 17 <xsl:include href="xhtml/lfs-legalnotice.xsl"/> 18 <xsl:include href="xhtml/lfs-mixed.xsl"/> 19 <xsl:include href="xhtml/lfs-navigational.xsl"/> 20 <xsl:include href="xhtml/lfs-titles.xsl"/> 21 <xsl:include href="xhtml/lfs-toc.xsl"/> 32 <!-- Add this to the footnotes --> 33 <xsl:apply-templates select='prefaceinfo|chapterinfo|sect1info' mode='attribution'/> 34 </xsl:template> 22 35 23 <!-- The CSS Stylesheet --> 24 <xsl:param name="html.stylesheet" select="'../stylesheets/blfs.css'"/> 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> 25 43 26 <!-- Dropping some unwanted style attributes --> 27 <xsl:param name="ulink.target" select="''"></xsl:param> 28 <xsl:param name="css.decoration" select="0"></xsl:param> 29 30 <!-- No XML declaration --> 31 <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/> 32 33 <!-- Insert a stylesheet for printing --> 34 <xsl:template name='user.head.content'> 35 <link rel='stylesheet' href="../stylesheets/blfs-print.css" type="text/css" media='print'/> 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,'$')" /> 36 52 </xsl:template> 37 53 38 <xsl:template match="userinput"> 39 <xsl:call-template name="inline.monoseq"/> 40 </xsl:template> 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> 41 60 42 61 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.