Changeset f7bd105 for stylesheets
- Timestamp:
- 12/19/2004 09:17:48 PM (19 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- faf3398
- Parents:
- 6d3af72
- Location:
- stylesheets
- Files:
-
- 5 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-chunked.xsl
r6d3af72 rf7bd105 6 6 7 7 <xsl:import href="lfs-chunked2.xsl"/> 8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.6 7.2/xhtml/chunk-common.xsl"/>9 <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.6 7.2/xhtml/manifest.xsl"/>8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/chunk-common.xsl"/> 9 <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/manifest.xsl"/> 10 10 11 11 <!-- From the original chunk.xsl file: … … 25 25 Voila! (Man I hope we can do this better in XSLT 2.0) --> 26 26 27 <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.6 7.2/xhtml/chunk-code.xsl"/>27 <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/chunk-code.xsl"/> 28 28 29 29 <!-- Including our others customized chunks templates --> -
stylesheets/lfs-chunked2.xsl
r6d3af72 rf7bd105 6 6 7 7 <!-- We use XHTML --> 8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.6 7.2/xhtml/docbook.xsl"/>8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/docbook.xsl"/> 9 9 <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> 10 10 11 11 <!-- Including our others customized elements templates --> 12 12 <xsl:include href="xhtml/lfs-admon.xsl"/> 13 <xsl:include href="xhtml/lfs-sections.xsl"/> 13 14 <xsl:include href="xhtml/lfs-mixed.xsl"/> 14 15 <xsl:include href="xhtml/lfs-titles.xsl"/> 15 16 <xsl:include href="xhtml/lfs-toc.xsl"/> 17 <xsl:include href="xhtml/lfs-xref.xsl"/> 18 19 <!-- This file contains our localization strings (for internationalization) --> 20 <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/> 16 21 17 22 <!-- The CSS Stylesheet --> -
stylesheets/lfs-nochunks.xsl
r6d3af72 rf7bd105 6 6 7 7 <!-- We use XHTML --> 8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.6 7.2/xhtml/docbook.xsl"/>8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/xhtml/docbook.xsl"/> 9 9 10 10 <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet --> … … 15 15 <xsl:include href="xhtml/lfs-index.xsl"/> 16 16 <xsl:include href="xhtml/lfs-mixed.xsl"/> 17 <xsl:include href="xhtml/lfs- navigational.xsl"/>17 <xsl:include href="xhtml/lfs-sections.xsl"/> 18 18 <xsl:include href="xhtml/lfs-toc.xsl"/> 19 <xsl:include href="xhtml/lfs-xref.xsl"/> 20 21 <!-- This file contains our localization strings (for internationalization) --> 22 <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/> 19 23 20 24 <!-- Dropping some unwanted style attributes --> 21 25 <xsl:param name="ulink.target" select="''"></xsl:param> 22 26 <xsl:param name="css.decoration" select="0"></xsl:param> 27 28 <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)--> 29 <xsl:template name="sect2.titlepage"> 30 <xsl:choose> 31 <xsl:when test="string-length(title) = 0"/> 32 <xsl:otherwise> 33 <div class="titlepage"> 34 <xsl:if test="@id"> 35 <a id="{@id}" name="{@id}"/> 36 </xsl:if> 37 <h3 class="{name(.)}"> 38 <xsl:apply-templates select="." mode="label.markup"/> 39 <xsl:text>. </xsl:text> 40 <xsl:value-of select="title"/> 41 </h3> 42 </div> 43 </xsl:otherwise> 44 </xsl:choose> 45 </xsl:template> 46 47 <!-- Added the role param for proper punctuation in xref calls 48 (from lfs-titles.xsl). --> 49 <xsl:template match="*" mode="insert.title.markup"> 50 <xsl:param name="purpose"/> 51 <xsl:param name="xrefstyle"/> 52 <xsl:param name="title"/> 53 <xsl:param name="role"/> 54 <xsl:choose> 55 <xsl:when test="$purpose = 'xref' and titleabbrev"> 56 <xsl:apply-templates select="." mode="titleabbrev.markup"/> 57 </xsl:when> 58 <xsl:otherwise> 59 <xsl:copy-of select="$title"/> 60 <xsl:value-of select="$role"/> 61 </xsl:otherwise> 62 </xsl:choose> 63 </xsl:template> 23 64 24 65 <!-- The CSS Stylesheet --> … … 174 215 } 175 216 217 /* itemizedlist */ 218 219 div.itemizedlist { 220 margin-left: 1em; 221 } 222 176 223 /* Indented blocks */ 177 224 p, ul, dl, code, blockquote { -
stylesheets/lfs-pdf.xsl
r6d3af72 rf7bd105 5 5 version="1.0"> 6 6 <!-- We use FO and FOP as the processor --> 7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.6 7.2/fo/docbook.xsl"/>7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/fo/docbook.xsl"/> 8 8 <xsl:param name="fop.extensions" select="1"/> 9 9 <xsl:param name="draft.mode" select="'no'"/> … … 13 13 <xsl:include href="pdf/lfs-pagesetup.xsl"/> 14 14 <xsl:include href="pdf/lfs-sections.xsl"/> 15 <xsl:include href="pdf/lfs-admon.xsl"/> 15 16 <xsl:include href="pdf/lfs-mixed.xsl"/> 17 <xsl:include href="pdf/lfs-xref.xsl"/> 18 19 <!-- This file contains our localization strings (for internationalization) --> 20 <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/> 16 21 17 22 <!-- Paper size required by the publisher --> … … 26 31 27 32 <!-- Font size --> 28 <xsl:param name="body.font.master"> 10</xsl:param>33 <xsl:param name="body.font.master">9</xsl:param> 29 34 <xsl:param name="body.font.size">12pt</xsl:param> 30 35 -
stylesheets/lfs-profile.xsl
r6d3af72 rf7bd105 5 5 version="1.0"> 6 6 7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.6 7.2/profiling/profile.xsl"/>7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.66.1/profiling/profile.xsl"/> 8 8 9 9 </xsl:stylesheet> -
stylesheets/lfs.css
r6d3af72 rf7bd105 111 111 } 112 112 113 li.preface {113 li.preface, li.appendix { 114 114 margin-left: 1em; 115 115 } … … 231 231 } 232 232 233 pre { 234 margin-top: .5em; 235 margin-bottom: .5em; 236 } 237 233 238 pre.userinput { 234 239 color: #101310; … … 240 245 } 241 246 247 .literal { 248 font-weight: normal; 249 } 250 242 251 pre.screen { 243 252 color: #000; … … 286 295 } 287 296 288 div.book, div.preface, div.part, div.chapter, div.sect1, div. index {297 div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index { 289 298 padding-bottom: 0.5em; 290 299 } 291 300 292 div.preface h1, div.part h1, div.chapter h1, div.sect1 h1, div. index h1 {301 div.preface h1, div.part h1, div.chapter h1, div.sect1 h1, div.appendix h1, div.index h1 { 293 302 background: #f5f6f7; 294 303 border-bottom: .1em solid #dbddec; -
stylesheets/patcheslist.xsl
r6d3af72 rf7bd105 33 33 <xsl:template match="//ulink"> 34 34 <xsl:if test="contains(@url, '.patch') and contains(@url, '&patches-root;')"> 35 <xsl:text> cp </xsl:text> 36 <xsl:text>/home/httpd/</xsl:text> 37 <xsl:value-of select="substring-before (substring-after ('&patches-root;', 'http://'), $links.directory)"/> 38 <xsl:text>downloads/</xsl:text> 39 <xsl:if test="contains (@url, '-')"> 40 <xsl:variable name="cut" select="translate (@url, '0123456789', '2222222222')"/> 41 <xsl:choose> 42 <xsl:when test="contains ($cut, ',')"> 43 <xsl:value-of select="substring-before (substring-after($cut, $links.directory), ',2')"/> 44 </xsl:when> 45 <xsl:otherwise> 35 <xsl:choose> 36 <xsl:when test="ancestor-or-self::*/@condition = 'pdf'"/> 37 <xsl:otherwise> 38 <xsl:text> cp </xsl:text> 39 <xsl:text>/home/httpd/</xsl:text> 40 <xsl:value-of select="substring-before (substring-after ('&patches-root;', 'http://'), $links.directory)"/> 41 <xsl:text>downloads/</xsl:text> 42 <xsl:if test="contains (@url, '-')"> 43 <xsl:variable name="cut" select="translate (@url, '0123456789', '2222222222')"/> 44 <xsl:variable name="links.directory2" select="translate ($links.directory, '0123456789', '2222222222')"/> 46 45 <xsl:choose> 47 <xsl:when test="contains ($cut, ' -src-2')">48 <xsl:value-of select="substring-before (substring-after($cut, $links.directory ), '-src-2')"/>46 <xsl:when test="contains ($cut, ',')"> 47 <xsl:value-of select="substring-before (substring-after($cut, $links.directory2), ',2')"/> 49 48 </xsl:when> 50 49 <xsl:otherwise> 51 <xsl:value-of select="substring-before (substring-after($cut, $links.directory), '-2')"/> 50 <xsl:choose> 51 <xsl:when test="contains ($cut, '-src-2')"> 52 <xsl:value-of select="substring-before (substring-after($cut, $links.directory2), '-src-2')"/> 53 </xsl:when> 54 <xsl:otherwise> 55 <xsl:value-of select="substring-before (substring-after($cut, $links.directory2), '-2')"/> 56 </xsl:otherwise> 57 </xsl:choose> 52 58 </xsl:otherwise> 53 59 </xsl:choose> 54 </xsl: otherwise>55 </xsl:choose>56 </xsl:if>57 <xsl:text>/</xsl:text>58 <xsl:value-of select="substring-after(@url, $links.directory)"/>59 < xsl:text> . 
</xsl:text>60 </xsl:if> 61 <xsl:text>/</xsl:text> 62 <xsl:value-of select="substring-after(@url, $links.directory)"/> 63 <xsl:text> . 
</xsl:text> 64 </xsl:otherwise> 65 </xsl:choose> 60 66 </xsl:if> 61 67 </xsl:template> -
stylesheets/pdf/lfs-index.xsl
r6d3af72 rf7bd105 14 14 <xsl:template match="index" mode="title.markup"> 15 15 <xsl:param name="allow-anchors" select="0"/> 16 <xsl:text>Index</xsl:text> 16 <xsl:call-template name="gentext"> 17 <xsl:with-param name="key">Index</xsl:with-param> 18 </xsl:call-template> 17 19 </xsl:template> 18 20 … … 31 33 <xsl:choose> 32 34 <xsl:when test="$divtitle = 'A'"> 33 <xsl:text>Packages</xsl:text> 34 </xsl:when> 35 <xsl:when test="$divtitle = 'B'"> 36 <xsl:text>Programs</xsl:text> 37 </xsl:when> 38 <xsl:when test="$divtitle = 'C'"> 39 <xsl:text>Libraries</xsl:text> 40 </xsl:when> 41 <xsl:when test="$divtitle = 'D'"> 42 <xsl:text>Scripts</xsl:text> 43 </xsl:when> 44 <xsl:when test="$divtitle = 'E'"> 45 <xsl:text>Others</xsl:text> 46 </xsl:when> 47 <xsl:otherwise> 48 <xsl:value-of select="$divtitle"/> 49 </xsl:otherwise> 50 </xsl:choose> 35 <xsl:call-template name="gentext"> 36 <xsl:with-param name="key">Packages</xsl:with-param> 37 </xsl:call-template> 38 </xsl:when> 39 <xsl:when test="$divtitle = 'B'"> 40 <xsl:call-template name="gentext"> 41 <xsl:with-param name="key">Programs</xsl:with-param> 42 </xsl:call-template> 43 </xsl:when> 44 <xsl:when test="$divtitle = 'C'"> 45 <xsl:call-template name="gentext"> 46 <xsl:with-param name="key">Libraries</xsl:with-param> 47 </xsl:call-template> 48 </xsl:when> 49 <xsl:when test="$divtitle = 'D'"> 50 <xsl:call-template name="gentext"> 51 <xsl:with-param name="key">Scripts</xsl:with-param> 52 </xsl:call-template> 53 </xsl:when> 54 <xsl:when test="$divtitle = 'E'"> 55 <xsl:call-template name="gentext"> 56 <xsl:with-param name="key">Others</xsl:with-param> 57 </xsl:call-template> 58 </xsl:when> 59 <xsl:otherwise> 60 <xsl:value-of select="$divtitle"/> 61 </xsl:otherwise> 62 </xsl:choose> 51 63 </xsl:with-param> 52 64 </xsl:call-template> -
stylesheets/pdf/lfs-mixed.xsl
r6d3af72 rf7bd105 5 5 version="1.0"> 6 6 7 8 <!-- This is a hack and isn't correct semantically. The beginpage tags must9 be placed in the XML source only to render the final PDF output, and must10 be removed after.-->7 8 <!-- This is a hack and isn't correct semantically. Theoretically, the beginpage 9 tags should be placed in the XML source only to render the PDF output and 10 should be removed after it. But there is no a better way and we need this.--> 11 11 <xsl:template match="beginpage"> 12 12 <fo:block break-after="page"/> 13 13 </xsl:template> 14 15 <!-- Split URLs --> 16 <xsl:template name="hyphenate-url"> 14 15 <!-- Allow forced line breaks inside paragraphs emulating literallayout. --> 16 <xsl:template match="para"> 17 <xsl:choose> 18 <xsl:when test="./@remap='verbatim'"> 19 <fo:block wrap-option="no-wrap" 20 white-space-collapse="false" 21 white-space-treatment="preserve" 22 text-align="start" 23 linefeed-treatment="preserve"> 24 <xsl:call-template name="anchor"/> 25 <xsl:apply-templates/> 26 </fo:block> 27 </xsl:when> 28 <xsl:otherwise> 29 <xsl:apply-imports/> 30 </xsl:otherwise> 31 </xsl:choose> 32 </xsl:template> 33 34 <!-- Show URLs in italic font --> 35 <xsl:template match="ulink" name="ulink"> 36 <fo:inline font-style="italic"> 37 <fo:basic-link xsl:use-attribute-sets="xref.properties"> 38 <xsl:attribute name="external-destination"> 39 <xsl:call-template name="fo-external-image"> 40 <xsl:with-param name="filename" select="@url"/> 41 </xsl:call-template> 42 </xsl:attribute> 43 <xsl:choose> 44 <xsl:when test="count(child::node())=0"> 45 <xsl:call-template name="hyphenate-url"> 46 <xsl:with-param name="url" select="@url"/> 47 </xsl:call-template> 48 </xsl:when> 49 <xsl:otherwise> 50 <xsl:apply-templates/> 51 </xsl:otherwise> 52 </xsl:choose> 53 </fo:basic-link> 54 </fo:inline> 55 <xsl:if test="count(child::node()) != 0 56 and string(.) != @url 57 and $ulink.show != 0"> 58 <!-- yes, show the URI --> 59 <xsl:choose> 60 <xsl:when test="$ulink.footnotes != 0 and not(ancestor::footnote)"> 61 <xsl:text> </xsl:text> 62 <fo:footnote> 63 <xsl:call-template name="ulink.footnote.number"/> 64 <fo:footnote-body font-family="{$body.fontset}" 65 font-size="{$footnote.font.size}"> 66 <fo:block> 67 <xsl:call-template name="ulink.footnote.number"/> 68 <xsl:text> </xsl:text> 69 <fo:inline> 70 <xsl:value-of select="@url"/> 71 </fo:inline> 72 </fo:block> 73 </fo:footnote-body> 74 </fo:footnote> 75 </xsl:when> 76 <xsl:otherwise> 77 <fo:inline hyphenate="false"> 78 <xsl:text> [</xsl:text> 79 <xsl:call-template name="hyphenate-url"> 80 <xsl:with-param name="url" select="@url"/> 81 </xsl:call-template> 82 <xsl:text>]</xsl:text> 83 </fo:inline> 84 </xsl:otherwise> 85 </xsl:choose> 86 </xsl:if> 87 </xsl:template> 88 89 <!-- Split URLs (obsolete, keeped as reference) --> 90 <!--<xsl:template name="hyphenate-url"> 17 91 <xsl:param name="url" select="''"/> 18 92 <xsl:choose> 19 93 <xsl:when test="ancestor::varlistentry"> 20 94 <xsl:choose> 21 <xsl:when test="string-length($url) > 88">95 <xsl:when test="string-length($url) > 90"> 22 96 <xsl:value-of select="substring($url, 1, 50)"/> 23 97 <xsl:param name="rest" select="substring($url, 51)"/> … … 32 106 </xsl:when> 33 107 <xsl:otherwise> 34 <xsl:value-of select="$url"/> 108 <xsl:value-of select="$url"/>--> 35 109 <!-- <xsl:value-of select="substring-before($url, '//')"/> 36 110 <xsl:text>// </xsl:text> … … 38 112 <xsl:with-param name="url2" select="substring-after($url, '//')"/> 39 113 </xsl:call-template>--> 40 </xsl:otherwise>114 <!-- </xsl:otherwise> 41 115 </xsl:choose> 42 </xsl:template> 116 </xsl:template>--> 43 117 44 118 <!--<xsl:template name="split-url"> … … 60 134 <!-- Shade screen --> 61 135 <xsl:param name="shade.verbatim" select="1"/> 62 63 <!-- Graphics in admonitions -->64 <xsl:param name="admon.graphics" select="1"/>65 <xsl:param name="admon.graphics.path"66 select="'/usr/share/xml/docbook/xsl-stylesheets-1.67.2/images/'"/>67 68 <!-- Admonition block properties -->69 <xsl:template match="important|warning|caution">70 <xsl:choose>71 <xsl:when test="$admon.graphics != 0">72 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"73 space-before.maximum="0.8em" border-style="solid" border-width="1pt"74 border-color="#500" background-color="#FFFFE6">75 <xsl:call-template name="graphical.admonition"/>76 </fo:block>77 </xsl:when>78 <xsl:otherwise>79 <xsl:call-template name="nongraphical.admonition"/>80 </xsl:otherwise>81 </xsl:choose>82 </xsl:template>83 84 <xsl:template match="note|tip">85 <xsl:choose>86 <xsl:when test="$admon.graphics != 0">87 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em"88 space-before.maximum="0.8em" border-style="solid" border-width="1pt"89 border-color="#E0E0E0" background-color="#FFFFE6">90 <xsl:call-template name="graphical.admonition"/>91 </fo:block>92 </xsl:when>93 <xsl:otherwise>94 <xsl:call-template name="nongraphical.admonition"/>95 </xsl:otherwise>96 </xsl:choose>97 </xsl:template>98 99 <!-- Admonitions text properties -->100 <xsl:attribute-set name="admonition.properties">101 <xsl:attribute name="margin-right">6pt</xsl:attribute>102 </xsl:attribute-set>103 104 <!-- Adding left space to the graphics and color to the titles -->105 <xsl:template name="graphical.admonition">106 <xsl:variable name="id">107 <xsl:call-template name="object.id"/>108 </xsl:variable>109 <fo:block id="{$id}">110 <fo:list-block xsl:use-attribute-sets="list.block.spacing">111 <fo:list-item>112 <fo:list-item-label end-indent="label-end()">113 <fo:block margin-left="4pt">114 <fo:external-graphic width="auto" height="auto">115 <xsl:attribute name="src">116 <xsl:call-template name="admon.graphic"/>117 </xsl:attribute>118 </fo:external-graphic>119 </fo:block>120 </fo:list-item-label>121 <fo:list-item-body start-indent="body-start()">122 <xsl:if test="$admon.textlabel != 0 or title">123 <fo:block xsl:use-attribute-sets="admonition.title.properties">124 <xsl:if test="ancestor-or-self::important">125 <xsl:attribute name="color">#500</xsl:attribute>126 </xsl:if>127 <xsl:if test="ancestor-or-self::warning">128 <xsl:attribute name="color">#500</xsl:attribute>129 </xsl:if>130 <xsl:if test="ancestor-or-self::caution">131 <xsl:attribute name="color">#500</xsl:attribute>132 </xsl:if>133 <xsl:apply-templates select="." mode="object.title.markup"/>134 </fo:block>135 </xsl:if>136 <fo:block xsl:use-attribute-sets="admonition.properties">137 <xsl:apply-templates/>138 </fo:block>139 </fo:list-item-body>140 </fo:list-item>141 </fo:list-block>142 </fo:block>143 </xsl:template>144 136 145 137 <!-- How is rendered by default a variablelist --> … … 178 170 </xsl:template> 179 171 172 <!-- Presentation of literal tag --> 173 <xsl:template match="literal"> 174 <fo:inline font-weight="normal"> 175 <xsl:call-template name="inline.monoseq"/> 176 </fo:inline> 177 </xsl:template> 178 179 <!-- Left alingnament for itemizedlist --> 180 <xsl:template match="itemizedlist"> 181 <xsl:variable name="id"> 182 <xsl:call-template name="object.id"/> 183 </xsl:variable> 184 <xsl:variable name="label-width"> 185 <xsl:call-template name="dbfo-attribute"> 186 <xsl:with-param name="pis" 187 select="processing-instruction('dbfo')"/> 188 <xsl:with-param name="attribute" select="'label-width'"/> 189 </xsl:call-template> 190 </xsl:variable> 191 <xsl:if test="title"> 192 <xsl:apply-templates select="title" mode="list.title.mode"/> 193 </xsl:if> 194 <!-- Preserve order of PIs and comments --> 195 <xsl:apply-templates 196 select="*[not(self::listitem 197 or self::title 198 or self::titleabbrev)] 199 |comment()[not(preceding-sibling::listitem)] 200 |processing-instruction()[not(preceding-sibling::listitem)]"/> 201 <fo:list-block id="{$id}" xsl:use-attribute-sets="list.block.spacing" 202 provisional-label-separation="0.2em" text-align="left"> 203 <xsl:attribute name="provisional-distance-between-starts"> 204 <xsl:choose> 205 <xsl:when test="$label-width != ''"> 206 <xsl:value-of select="$label-width"/> 207 </xsl:when> 208 <xsl:otherwise>1.5em</xsl:otherwise> 209 </xsl:choose> 210 </xsl:attribute> 211 <xsl:apply-templates 212 select="listitem 213 |comment()[preceding-sibling::listitem] 214 |processing-instruction()[preceding-sibling::listitem]"/> 215 </fo:list-block> 216 </xsl:template> 217 218 <!-- Addibg a bullet, and left alignament, for packages and paches list. --> 219 220 <xsl:template match="varlistentry" mode="vl.as.blocks"> 221 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> 222 <xsl:choose> 223 <xsl:when test="ancestor::variablelist/@role = 'materials'"> 224 <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" 225 keep-together.within-column="always" 226 keep-with-next.within-column="always" text-align="left"> 227 <xsl:text>• </xsl:text> 228 <xsl:apply-templates select="term"/> 229 </fo:block> 230 <fo:block margin-left="0.1in" text-align="left"> 231 <xsl:apply-templates select="listitem"/> 232 </fo:block> 233 </xsl:when> 234 <xsl:otherwise> 235 <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" 236 keep-together.within-column="always" 237 keep-with-next.within-column="always"> 238 <xsl:apply-templates select="term"/> 239 </fo:block> 240 <fo:block margin-left="0.25in"> 241 <xsl:apply-templates select="listitem"/> 242 </fo:block> 243 </xsl:otherwise> 244 </xsl:choose> 245 </xsl:template> 246 180 247 </xsl:stylesheet> -
stylesheets/pdf/lfs-pagesetup.xsl
r6d3af72 rf7bd105 63 63 </xsl:template> 64 64 65 <!-- Font size for chapter title. --> 66 <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode"> 67 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" 68 xsl:use-attribute-sets="chapter.titlepage.recto.style" 69 font-size="21pt" font-weight="bold" text-align="left"> 70 <xsl:call-template name="component.title"> 71 <xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/> 72 </xsl:call-template> 73 </fo:block> 74 </xsl:template> 75 65 76 <!-- Margins --> 66 77 <xsl:param name="page.margin.inner">0.5in</xsl:param> -
stylesheets/xhtml/lfs-admon.xsl
r6d3af72 rf7bd105 22 22 </xsl:choose> 23 23 </xsl:variable> 24 <xsl:variable name="alt"> 25 <xsl:call-template name="gentext"> 26 <xsl:with-param name="key" select="$admon.type"/> 27 </xsl:call-template> 28 </xsl:variable> 24 29 <div class="{name(.)}"> 25 30 <div class ="admonhead"> 26 <img alt="[{$a dmon.type}]">31 <img alt="[{$alt}]"> 27 32 <xsl:attribute name="src"> 28 33 <xsl:call-template name="admon.graphic"/> … … 30 35 </img> 31 36 <h3 class="admontitle"> 32 <xsl:value-of select="$admon.type"/> 33 <xsl:if test="title"> 34 <xsl:text>: </xsl:text> 35 <xsl:value-of select="title"/> 36 </xsl:if> 37 <xsl:apply-templates select="." mode="object.title.markup"/> 37 38 </h3> 38 39 </div> -
stylesheets/xhtml/lfs-index.xsl
r6d3af72 rf7bd105 17 17 18 18 <!--Title--> 19 <xsl:param name="index-title">Index of packages and important installed files</xsl:param>19 <xsl:param name="index-title">Index</xsl:param> 20 20 21 21 <xsl:template match="index" mode="title.markup"> 22 <xsl:value-of select="$index-title"/> 23 </xsl:template> 24 22 <xsl:call-template name="gentext"> 23 <xsl:with-param name="key" select="$index-title"/> 24 </xsl:call-template> 25 </xsl:template> 26 25 27 <xsl:template name="index.titlepage"> 26 28 <div class="titlepage"> 27 29 <h1 class="index"> 28 <xsl:value-of select="$index-title"/> 30 <xsl:call-template name="gentext"> 31 <xsl:with-param name="key" select="$index-title"/> 32 </xsl:call-template> 29 33 </h1> 30 34 </div> … … 43 47 <xsl:choose> 44 48 <xsl:when test="$divtitle = 'A'"> 45 <xsl:text>Packages</xsl:text> 49 <xsl:call-template name="gentext"> 50 <xsl:with-param name="key">Packages</xsl:with-param> 51 </xsl:call-template> 46 52 </xsl:when> 47 53 <xsl:when test="$divtitle = 'B'"> 48 <xsl:text>Programs</xsl:text> 54 <xsl:call-template name="gentext"> 55 <xsl:with-param name="key">Programs</xsl:with-param> 56 </xsl:call-template> 49 57 </xsl:when> 50 58 <xsl:when test="$divtitle = 'C'"> 51 <xsl:text>Libraries</xsl:text> 59 <xsl:call-template name="gentext"> 60 <xsl:with-param name="key">Libraries</xsl:with-param> 61 </xsl:call-template> 52 62 </xsl:when> 53 63 <xsl:when test="$divtitle = 'D'"> 54 <xsl:text>Scripts</xsl:text> 64 <xsl:call-template name="gentext"> 65 <xsl:with-param name="key">Scripts</xsl:with-param> 66 </xsl:call-template> 55 67 </xsl:when> 56 68 <xsl:when test="$divtitle = 'E'"> 57 <xsl:text>Others</xsl:text> 69 <xsl:call-template name="gentext"> 70 <xsl:with-param name="key">Others</xsl:with-param> 71 </xsl:call-template> 58 72 </xsl:when> 59 73 <xsl:otherwise> … … 163 177 </xsl:call-template> 164 178 </xsl:attribute> 165 <xsl:text>description</xsl:text> 179 <xsl:call-template name="gentext"> 180 <xsl:with-param name="key">description</xsl:with-param> 181 </xsl:call-template> 166 182 </a> 167 183 </xsl:when> -
stylesheets/xhtml/lfs-mixed.xsl
r6d3af72 rf7bd105 10 10 <xsl:when test="child::* = userinput"> 11 11 <pre class="userinput"> 12 <kbd class="command"> 13 <xsl:value-of select="."/> 14 </kbd> 12 <xsl:apply-templates/> 15 13 </pre> 16 14 </xsl:when> … … 22 20 </xsl:choose> 23 21 </xsl:template> 22 23 <xsl:template match="userinput"> 24 <xsl:choose> 25 <xsl:when test="ancestor::screen"> 26 <kbd class="command"> 27 <xsl:apply-templates/> 28 </kbd> 29 </xsl:when> 30 <xsl:otherwise> 31 <xsl:apply-imports/> 32 </xsl:otherwise> 33 </xsl:choose> 34 </xsl:template> 35 24 36 25 37 <!-- variablelist --> … … 61 73 </xsl:template> 62 74 63 <!-- Sect1 attributes-->64 <xsl:template match=" sect1">65 < div>66 <xsl: choose>67 <xsl: when test="@role">68 <xsl: attribute name="class">69 <xsl:value-of select="@role"/>70 </xsl:attribute>71 </xsl:when>72 <xsl:otherwise>73 <xsl:attribute name="class">74 <xsl:value-of select="name(.)"/>75 </xsl:attribute>76 </xsl:otherwise>77 </xsl:choose>78 <xsl:call-template name="language.attribute"/>79 <xsl:call-template name="sect1.titlepage"/>80 <xsl:apply-templates/>81 < xsl:call-template name="process.chunk.footnotes"/>82 </ div>75 <!-- External URLs in italic font --> 76 <xsl:template match="ulink" name="ulink"> 77 <a> 78 <xsl:if test="@id"> 79 <xsl:attribute name="id"> 80 <xsl:value-of select="@id"/> 81 </xsl:attribute> 82 </xsl:if> 83 <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute> 84 <i> 85 <xsl:choose> 86 <xsl:when test="count(child::node())=0"> 87 <xsl:value-of select="@url"/> 88 </xsl:when> 89 <xsl:otherwise> 90 <xsl:apply-templates/> 91 </xsl:otherwise> 92 </xsl:choose> 93 </i> 94 </a> 83 95 </xsl:template> 84 96 85 <!-- Sect2 attributes -->86 <xsl:template match="sect2">87 <div>88 <xsl:choose>89 <xsl:when test="@role">90 <xsl:attribute name="class">91 <xsl:value-of select="@role"/>92 </xsl:attribute>93 </xsl:when>94 <xsl:otherwise>95 <xsl:attribute name="class">96 <xsl:value-of select="name(.)"/>97 </xsl:attribute>98 </xsl:otherwise>99 </xsl:choose>100 <xsl:call-template name="language.attribute"/>101 <xsl:call-template name="sect2.titlepage"/>102 <xsl:apply-templates/>103 <xsl:call-template name="process.chunk.footnotes"/>104 </div>105 </xsl:template>106 97 107 98 </xsl:stylesheet> -
stylesheets/xhtml/lfs-navigational.xsl
r6d3af72 rf7bd105 69 69 </xsl:attribute> 70 70 <xsl:attribute name="title"> 71 <xsl:value-of select="$next/title"/> 71 <xsl:choose> 72 <xsl:when test="local-name($next)='index'"> 73 <xsl:call-template name="gentext"> 74 <xsl:with-param name="key">Index</xsl:with-param> 75 </xsl:call-template> 76 </xsl:when> 77 <xsl:otherwise> 78 <xsl:value-of select="$next/title"/> 79 </xsl:otherwise> 80 </xsl:choose> 72 81 </xsl:attribute> 73 82 <xsl:call-template name="navig.content"> … … 76 85 </a> 77 86 <p> 78 <xsl:value-of select="$next/title"/> 87 <xsl:choose> 88 <xsl:when test="local-name($next)='index'"> 89 <xsl:call-template name="gentext"> 90 <xsl:with-param name="key">Index</xsl:with-param> 91 </xsl:call-template> 92 </xsl:when> 93 <xsl:otherwise> 94 <xsl:value-of select="$next/title"/> 95 </xsl:otherwise> 96 </xsl:choose> 79 97 </p> 80 98 </li> … … 161 179 </xsl:attribute> 162 180 <xsl:attribute name="title"> 163 <xsl:value-of select="$next/title"/> 181 <xsl:choose> 182 <xsl:when test="local-name($next)='index'"> 183 <xsl:call-template name="gentext"> 184 <xsl:with-param name="key">Index</xsl:with-param> 185 </xsl:call-template> 186 </xsl:when> 187 <xsl:otherwise> 188 <xsl:value-of select="$next/title"/> 189 </xsl:otherwise> 190 </xsl:choose> 164 191 </xsl:attribute> 165 192 <xsl:call-template name="navig.content"> … … 168 195 </a> 169 196 <p> 170 <xsl:value-of select="$next/title"/> 197 <xsl:choose> 198 <xsl:when test="local-name($next)='index'"> 199 <xsl:call-template name="gentext"> 200 <xsl:with-param name="key">Index</xsl:with-param> 201 </xsl:call-template> 202 </xsl:when> 203 <xsl:otherwise> 204 <xsl:value-of select="$next/title"/> 205 </xsl:otherwise> 206 </xsl:choose> 171 207 </p> 172 208 </li> -
stylesheets/xhtml/lfs-titles.xsl
r6d3af72 rf7bd105 8 8 <div class="titlepage"> 9 9 <h1 class="{name(.)}"> 10 <xsl:apply-templates select="." mode="label.markup"/> 11 <xsl:text>. </xsl:text> 10 12 <xsl:value-of select="title"/> 11 13 </h1> … … 16 18 <div class="titlepage"> 17 19 <h1 class="{name(.)}"> 20 <xsl:apply-templates select="." mode="label.markup"/> 21 <xsl:text>. </xsl:text> 18 22 <xsl:value-of select="title"/> 19 23 </h1> … … 24 28 <div class="titlepage"> 25 29 <h1 class="{name(.)}"> 30 <xsl:value-of select="title"/> 31 </h1> 32 </div> 33 </xsl:template> 34 35 <xsl:template name="appendix.titlepage"> 36 <div class="titlepage"> 37 <h1 class="{name(.)}"> 38 <xsl:apply-templates select="." mode="label.markup"/> 39 <xsl:text>. </xsl:text> 26 40 <xsl:value-of select="title"/> 27 41 </h1> … … 38 52 </xsl:if> 39 53 <h2 class="{name(.)}"> 54 <xsl:apply-templates select="." mode="label.markup"/> 55 <xsl:text>. </xsl:text> 40 56 <xsl:value-of select="title"/> 41 57 </h2> … … 45 61 <div class="titlepage"> 46 62 <h1 class="{name(.)}"> 63 <xsl:apply-templates select="." mode="label.markup"/> 64 <xsl:text>. </xsl:text> 47 65 <xsl:value-of select="title"/> 48 66 </h1> … … 61 79 </xsl:if> 62 80 <h2 class="{name(.)}"> 81 <xsl:apply-templates select="." mode="label.markup"/> 82 <xsl:text>. </xsl:text> 63 83 <xsl:value-of select="title"/> 64 84 </h2> … … 76 96 </xsl:template> 77 97 98 <!-- Added the role param for proper punctuation in xref calls. --> 99 <xsl:template match="*" mode="insert.title.markup"> 100 <xsl:param name="purpose"/> 101 <xsl:param name="xrefstyle"/> 102 <xsl:param name="title"/> 103 <xsl:param name="role"/> 104 <xsl:choose> 105 <xsl:when test="$purpose = 'xref' and titleabbrev"> 106 <xsl:apply-templates select="." mode="titleabbrev.markup"/> 107 </xsl:when> 108 <xsl:otherwise> 109 <xsl:copy-of select="$title"/> 110 <xsl:value-of select="$role"/> 111 </xsl:otherwise> 112 </xsl:choose> 113 </xsl:template> 114 78 115 </xsl:stylesheet> -
stylesheets/xhtml/lfs-toc.xsl
r6d3af72 rf7bd105 7 7 <!-- General settings --> 8 8 <xsl:param name="generate.toc"> 9 appendix toc9 appendix nop 10 10 book toc,title,figure,table,example,equation 11 11 chapter nop … … 94 94 </a> 95 95 </xsl:when> 96 <xsl:when test="local-name(.) = 'appendix'"> 97 <a> 98 <xsl:attribute name="href"> 99 <xsl:call-template name="href.target"> 100 <xsl:with-param name="context" select="$toc-context"/> 101 </xsl:call-template> 102 </xsl:attribute> 103 <xsl:variable name="label"> 104 <xsl:apply-templates select="." mode="label.markup"/> 105 </xsl:variable> 106 <xsl:copy-of select="$label"/> 107 <xsl:if test="$label != ''"> 108 <xsl:value-of select="$autotoc.label.separator"/> 109 </xsl:if> 110 <xsl:apply-templates select="." mode="titleabbrev.markup"/> 111 </a> 112 </xsl:when> 96 113 <xsl:when test="local-name(.) = 'chapter' or local-name(.) = 'preface'"> 97 114 <h4>
Note:
See TracChangeset
for help on using the changeset viewer.