Changeset 5d4975d
- Timestamp:
- 05/08/2004 02:42:12 AM (20 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 12.2, 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, gimp3, 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, v5_1, v5_1-pre1, xry111/for-12.3, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/spidermonkey128, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 98b068f
- Parents:
- 64f2cb5d
- Files:
-
- 16 added
- 1 deleted
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r64f2cb5d r5d4975d 46 46 mkdir -p $(BASEDIR)images; \ 47 47 fi; 48 cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \ 49 $(BASEDIR)images 48 cp images/*.png $(BASEDIR)/images 50 49 cd $(BASEDIR); sed -i -e "s@../stylesheets@stylesheets@" \ 51 50 index.html … … 57 56 stylesheets/blfs-pdf.xsl \ 58 57 index.xml 58 sed -i -e "s/inherit/all/" blfs.fo 59 59 fop.sh blfs.fo blfs.pdf 60 61 print: 62 xsltproc --xinclude --nonet --output blfs-print.fo \ 63 stylesheets/blfs-print.xsl index.xml 64 sed -i -e "s/inherit/all/" blfs-print.fo 65 fop.sh blfs-print.fo blfs-print.pdf 60 66 61 67 tex: … … 74 80 index.xml 75 81 @cd $(TEXBASEDIR) && xsltproc --nonet -o blfs-book.tex \ 76 $(SRCDIR)/stylesheets/ blfs-tex.xsl index.xml82 $(SRCDIR)/stylesheets/lfs-tex.xsl index.xml 77 83 78 84 validate: -
stylesheets/blfs-chunked.xsl
r64f2cb5d r5d4975d 1 <?xml version='1.0'?> 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 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 7 xmlns="http://www.w3.org/1999/xhtml" 4 8 version="1.0"> 5 9 6 <!-- We use XHTML -->10 <!-- We use XHTML --> 7 11 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/chunk.xsl"/> 8 12 <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> 13 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"/> 9 22 10 <!-- The CSS Stylesheet -->11 <xsl:param name="html.stylesheet" select="'../stylesheets/ blfs.css'"/>23 <!-- The CSS Stylesheet --> 24 <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/> 12 25 13 <!-- Include our customised templates --> 14 <xsl:include href="xhtml/blfs-toc.xsl"/> 15 <xsl:include href="xhtml/blfs-index.xsl"/> 16 17 <!-- Use graphics in admonitions --> 18 <xsl:param name="admon.graphics" select="1"/> 19 <xsl:param name="admon.graphics.path">../images/</xsl:param> 20 <xsl:param name="admon.graphics.extension" select="'.png'"/> 21 22 <!-- Legal Notice stuff --> 23 <xsl:param name="generate.legalnotice.link" select="1"/> 24 <xsl:template match="legalnotice" mode="titlepage.mode"> 25 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> 26 <xsl:choose> 27 <xsl:when test="$generate.legalnotice.link != 0"> 28 <xsl:variable name="filename"> 29 <xsl:call-template name="make-relative-filename"> 30 <xsl:with-param name="base.dir" select="''"/> 31 <xsl:with-param name="base.name" select="concat($base.dir, 'prologue/legalnotice.html')"/> 32 </xsl:call-template> 33 </xsl:variable> 34 <xsl:variable name="title"> 35 <xsl:apply-templates select="." mode="title.markup"/> 36 </xsl:variable> 37 <xsl:element name="a"> 38 <xsl:attribute name="href"> 39 <xsl:value-of select="'prologue/legalnotice.html'"/> 40 </xsl:attribute> 41 <xsl:copy-of select="$title"/> 42 </xsl:element> 43 <xsl:call-template name="write.chunk"> 44 <xsl:with-param name="filename" select="$filename"/> 45 <xsl:with-param name="quiet" select="$chunk.quietly"/> 46 <xsl:with-param name="content"> 47 <html> 48 <head> 49 <xsl:call-template name="system.head.content"/> 50 <xsl:call-template name="head.content"/> 51 <xsl:call-template name="user.head.content"/> 52 </head> 53 <body> 54 <xsl:call-template name="body.attributes"/> 55 <div class="{local-name(.)}"> 56 <xsl:apply-templates mode="titlepage.mode"/> 57 </div> 58 </body> 59 </html> 60 </xsl:with-param> 61 </xsl:call-template> 62 </xsl:when> 63 <xsl:otherwise> 64 <div class="{local-name(.)}"> 65 <xsl:apply-templates mode="titlepage.mode"/> 66 </div> 67 </xsl:otherwise> 68 </xsl:choose> 69 </xsl:template> 70 71 <!--TOC stuff--> 72 <xsl:param name="generate.toc"> 73 appendix toc 74 book toc,title,figure,table,example,equation 75 chapter nop 76 part toc 77 preface nop 78 qandadiv nop 79 qandaset nop 80 reference nop 81 sect1 nop 82 sect2 nop 83 sect3 nop 84 sect4 nop 85 sect5 nop 86 section nop 87 set nop 88 </xsl:param> 89 <xsl:param name="toc.section.depth">1</xsl:param> 90 <xsl:param name="toc.max.depth">3</xsl:param> 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'"/> 91 32 92 33 </xsl:stylesheet> -
stylesheets/blfs-pdf.xsl
r64f2cb5d r5d4975d 1 <?xml version='1.0'?> 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-pdf.xsl created by Matthew Burgess --> 5 2 6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 7 xmlns:fo="http://www.w3.org/1999/XSL/Format" 4 xmlns="http://www.w3.org/1999/xhtml"5 8 version="1.0"> 6 9 7 <!-- We use FO and FOP as the processor -->8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/ current/fo/docbook.xsl"/>10 <!-- We use FO and FOP as the processor --> 11 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/fo/docbook.xsl"/> 9 12 <xsl:param name="fop.extensions" select="1"/> 10 13 <xsl:param name="draft.mode" select="'no'"/> 11 <!-- Probably want to make the paper size configurable -->12 <xsl:param name="paper.type" select="'Letter'"/>13 14 15 <!-- Including our others customized templates --> 16 <xsl:include href="pdf/lfs-index.xsl"/> 17 <xsl:include href="pdf/lfs-pagesetup.xsl"/> 14 18 15 <!-- Font size --> 19 <!-- Probably want to make the paper size configurable --> 20 <xsl:param name="paper.type" select="'letter'"/> 21 22 <!-- Don't hyphenate --> 23 <xsl:param name="hyphenate">false</xsl:param> 24 <xsl:param name="alignment">left</xsl:param> 25 26 <!-- Font size --> 16 27 <xsl:param name="body.font.master">8</xsl:param> 17 28 <xsl:param name="body.font.size">10pt</xsl:param> 18 29 19 <!-- Margins --> 20 <xsl:param name="page.margin.inner">1in</xsl:param> 21 <xsl:param name="page.margin.outer">0.5in</xsl:param> 22 <xsl:param name="title.margin.left">-1pc</xsl:param> 30 <!-- Graphics in admonitions --> 31 <xsl:param name="admon.graphics" select="1"/> 23 32 24 <!-- TOC stuff --> 33 <!-- Shade screen --> 34 <xsl:param name="shade.verbatim" select="1"/> 35 36 <!-- TOC generation --> 25 37 <xsl:param name="generate.toc"> 26 38 book toc … … 28 40 </xsl:param> 29 41 <xsl:param name="toc.section.depth">1</xsl:param> 30 <xsl:param name="generate.section.toc.level" select="-1"></xsl:param> 31 <xsl:param name="toc.indent.width" select="18"></xsl:param> 32 33 <!-- Force section1's onto a new page --> 34 <xsl:attribute-set name="section.level1.properties"> 35 <xsl:attribute name="break-after">page</xsl:attribute> 36 </xsl:attribute-set> 37 38 <!-- Columns in appendix --> 39 <xsl:param name="column.count.back" select="2"/> 40 41 <!-- Don't hyphenate --> 42 <xsl:param name="hyphenate">false</xsl:param> 43 <xsl:param name="alignment">left</xsl:param> 42 <xsl:param name="generate.section.toc.level" select="-1"/> 43 <xsl:param name="toc.indent.width" select="18"/> 44 44 45 45 <!-- Page number in Xref--> 46 46 <xsl:param name="insert.xref.page.number">yes</xsl:param> 47 <xsl:template match="xref" name="xref"> 48 <xsl:variable name="targets" select="key('id',@linkend)"/> 49 <xsl:variable name="target" select="$targets[1]"/> 50 <xsl:variable name="refelem" select="local-name($target)"/> 51 <xsl:call-template name="check.id.unique"> 52 <xsl:with-param name="linkend" select="@linkend"/> 53 </xsl:call-template> 54 <xsl:choose> 55 <xsl:when test="$refelem=''"> 56 <xsl:message> 57 <xsl:text>XRef to nonexistent id: </xsl:text> 58 <xsl:value-of select="@linkend"/> 59 </xsl:message> 60 <xsl:text>???</xsl:text> 61 </xsl:when> 62 <xsl:when test="@endterm"> 63 <fo:basic-link internal-destination="{@linkend}" 64 xsl:use-attribute-sets="xref.properties"> 65 <xsl:variable name="etargets" select="key('id',@endterm)"/> 66 <xsl:variable name="etarget" select="$etargets[1]"/> 67 <xsl:choose> 68 <xsl:when test="count($etarget) = 0"> 69 <xsl:message> 70 <xsl:value-of select="count($etargets)"/> 71 <xsl:text>Endterm points to nonexistent ID: </xsl:text> 72 <xsl:value-of select="@endterm"/> 73 </xsl:message> 74 <xsl:text>???</xsl:text> 75 </xsl:when> 76 <xsl:otherwise> 77 <xsl:apply-templates select="$etarget" mode="endterm"/> 78 </xsl:otherwise> 79 </xsl:choose> 80 </fo:basic-link> 81 </xsl:when> 82 <xsl:when test="$target/@xreflabel"> 83 <fo:basic-link internal-destination="{@linkend}" 84 xsl:use-attribute-sets="xref.properties"> 85 <xsl:call-template name="xref.xreflabel"> 86 <xsl:with-param name="target" select="$target"/> 87 </xsl:call-template> 88 </fo:basic-link> 89 </xsl:when> 90 <xsl:otherwise> 91 <fo:basic-link internal-destination="{@linkend}" 92 xsl:use-attribute-sets="xref.properties"> 93 <xsl:apply-templates select="$target" mode="xref-to"> 94 <xsl:with-param name="referrer" select="."/> 95 <xsl:with-param name="xrefstyle"> 96 <xsl:choose> 97 <xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0"> 98 <xsl:value-of select="@role"/> 99 </xsl:when> 100 <xsl:otherwise> 101 <xsl:value-of select="@xrefstyle"/> 102 </xsl:otherwise> 103 </xsl:choose> 104 </xsl:with-param> 105 </xsl:apply-templates> 106 </fo:basic-link> 107 </xsl:otherwise> 108 </xsl:choose> 109 <xsl:if test="not(starts-with(normalize-space(@xrefstyle), 'select:') != '' 110 and (contains(@xrefstyle, 'page') 111 or contains(@xrefstyle, 'Page'))) 112 and ( $insert.xref.page.number = 'yes' 113 or $insert.xref.page.number = '1') 114 or local-name($target) = 'para'"> 115 <fo:basic-link internal-destination="{@linkend}" 116 xsl:use-attribute-sets="xref.properties"> 117 <xsl:text>, p. </xsl:text> 118 <xsl:apply-templates select="$target" mode="page.citation"> 119 <xsl:with-param name="id" select="@linkend"/> 120 </xsl:apply-templates> 121 </fo:basic-link> 122 </xsl:if> 123 </xsl:template> 47 <xsl:template match="*" mode="page.citation"> 48 <xsl:param name="id" select="'???'"/> 49 <fo:inline keep-together.within-line="always"> 50 <xsl:text>[p.</xsl:text> 51 <fo:page-number-citation ref-id="{$id}"/> 52 <xsl:text>]</xsl:text> 53 </fo:inline> 54 </xsl:template> 124 55 125 56 <!-- Prevent duplicate e-mails in the Acknowledgments pages--> -
stylesheets/blfs.css
r64f2cb5d r5d4975d 1 1 body { 2 2 font-weight: normal; 3 font-size: normal;3 font-size: medium; 4 4 font-family: verdana, tahoma, helvetica, arial, sans-serif; 5 5 text-align: left; 6 6 } 7 7 8 div.navheader table{9 font-size: smaller;8 .toc ul, .index ul { 9 list-style: none; 10 10 } 11 11 12 div.navfooter table { 13 font-size: smaller; 12 .navheader, .navfooter { 13 font-size: smaller; 14 text-align: center; 14 15 } 15 16 16 div.navheader img { 17 border: medium none; 17 div.navheader ul li, div.navfooter ul li { 18 display: inline; 19 padding: 4em; 18 20 } 19 21 20 div.navfooter img{21 border: medium none;22 li.preface { 23 margin-left: 2.5em; 22 24 } 23 25 … … 69 71 } 70 72 71 div.warning { 72 border: 1px solid; 73 div.admonition { 74 border: medium solid; 75 width: 90%; 76 margin: .5em auto; 73 77 } 74 78 75 div.note { 76 border: 1px solid; 79 div.admonhead h3 { 80 display: inline; 81 margin-left: 1.5em; 77 82 } 78 83 79 div.important { 80 border: 1px solid; 81 } 82 83 div.caution { 84 border: 1px solid; 85 } 86 87 div.warning h3.title { 88 text-align: center 89 } 90 91 div.warning p { 92 padding-left: 0.2in 93 } 94 95 div.note { 96 padding-left: 0.2in 97 } 98 99 div.important { 100 padding-left: 0.2in 101 } 102 103 div.caution { 104 padding-left: 0.2in 84 div.admonbody { 85 margin: .5em; 105 86 } 106 87 … … 119 100 float: left; 120 101 } 121 122 .toc ul, .index ul, .navheader ul, .navfooter ul {123 list-style: none;124 }125 126 h3, h4 {127 margin: .3em 0em;128 }129 130 -
stylesheets/xhtml/lfs-index.xsl
r64f2cb5d r5d4975d 7 7 ]> 8 8 9 <!-- Version 0. 8.0- Manuel Canales Esparcia <macana@lfs-es.org> -->9 <!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> --> 10 10 11 11 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 12 12 xmlns="http://www.w3.org/1999/xhtml" 13 13 version="1.0"> 14 15 <!--Index Stuff-->16 14 17 15 <!--Filename--> … … 21 19 22 20 <!--Title--> 21 <xsl:param name="index-title">Index of packages and important installed files</xsl:param> 22 23 23 <xsl:template match="index" mode="title.markup"> 24 <xsl:param name="allow-anchors" select="0"/> 25 <xsl:text>Index of packages and important installed files</xsl:text> 24 <xsl:value-of select="$index-title"/> 26 25 </xsl:template> 26 27 <xsl:template name="index.titlepage"> 28 <div class="titlepage"> 29 <h1 class="index"> 30 <xsl:value-of select="$index-title"/> 31 </h1> 32 </div> 33 </xsl:template> 27 34 28 35 <!--Divisions--> … … 110 117 </li> 111 118 </xsl:template> 119 112 120 <xsl:template match="indexterm" mode="index-secondary"> 113 121 <xsl:param name="scope" select="."/> … … 174 182 </xsl:choose> 175 183 </xsl:template> 184 185 <!-- Dropping unneeded anchors --> 186 <xsl:template match="indexterm"/> 176 187 177 188 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.