Changeset 01d6d63 for stylesheets
- Timestamp:
- 08/10/2004 07:25:59 PM (20 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:
- a112251
- Parents:
- 536b6aa
- Location:
- stylesheets
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-print.xsl
r536b6aa r01d6d63 14 14 15 15 <!-- Paper size required by the publisher --> 16 <xsl:param name="paper.type" select="'Cu nstommized'"/>16 <xsl:param name="paper.type" select="'Customized'"/> 17 17 <xsl:param name="page.width">7.25in</xsl:param> 18 18 <xsl:param name="page.height">9.25in</xsl:param> … … 37 37 38 38 <!-- Page number in Xref--> 39 <xsl:param name="insert.xref.page.number"> yes</xsl:param>39 <xsl:param name="insert.xref.page.number">no</xsl:param> 40 40 <xsl:template match="*" mode="page.citation"> 41 41 <xsl:param name="id" select="'???'"/> 42 42 <fo:inline keep-together.within-line="always"> 43 < xsl:text>[p</xsl:text>43 <!--<xsl:text>[p</xsl:text>--> 44 44 <fo:page-number-citation ref-id="{$id}"/> 45 < xsl:text>]</xsl:text>45 <!--<xsl:text>]</xsl:text>--> 46 46 </fo:inline> 47 47 </xsl:template> … … 50 50 <xsl:param name="ulink.show" select="0"/> 51 51 52 <!-- Sections numbering --> 53 <xsl:param name="section.autolabel" select="1"/> 54 <xsl:param name="section.label.includes.component.label" select="1"/> 55 52 56 </xsl:stylesheet> -
stylesheets/patcheslist.xsl
r536b6aa r01d6d63 8 8 <xsl:output method="text"/> 9 9 10 <xsl:param name="links.directory">lfs/cvs/ unstable/</xsl:param>10 <xsl:param name="links.directory">lfs/cvs/testing/</xsl:param> 11 11 <xsl:param name="deep.to.downloads">../../../</xsl:param> 12 12 … … 52 52 <xsl:text>/</xsl:text> 53 53 <xsl:value-of select="substring-after(@url, $links.directory)"/> 54 <xsl:text> . & amp;&
</xsl:text>54 <xsl:text> . 
</xsl:text> 55 55 </xsl:if> 56 56 </xsl:template> -
stylesheets/print/lfs-pagesetup.xsl
r536b6aa r01d6d63 18 18 </xsl:attribute> 19 19 </xsl:attribute-set> 20 21 <!-- Skip numeraration for sections with empty title --> 22 <xsl:template match="sect2|sect3|sect4|sect5" mode="label.markup"> 23 <xsl:if test="string-length(title) > 0"> 24 <!-- label the parent --> 25 <xsl:variable name="parent.label"> 26 <xsl:apply-templates select=".." mode="label.markup"/> 27 </xsl:variable> 28 <xsl:if test="$parent.label != ''"> 29 <xsl:apply-templates select=".." mode="label.markup"/> 30 <xsl:apply-templates select=".." mode="intralabel.punctuation"/> 31 </xsl:if> 32 <xsl:choose> 33 <xsl:when test="@label"> 34 <xsl:value-of select="@label"/> 35 </xsl:when> 36 <xsl:when test="$section.autolabel != 0"> 37 <xsl:choose> 38 <xsl:when test="local-name(.) = 'sect2'"> 39 <xsl:choose> 40 <!-- If the first sect2 isn't numbered, renumber the remainig sections --> 41 <xsl:when test="string-length(../sect2[1]/title) = 0"> 42 <xsl:variable name="totalsect2"> 43 <xsl:number count="sect2"/> 44 </xsl:variable> 45 <xsl:number value="$totalsect2 - 1"/> 46 </xsl:when> 47 <xsl:otherwise> 48 <xsl:number count="sect2"/> 49 </xsl:otherwise> 50 </xsl:choose> 51 </xsl:when> 52 <xsl:when test="local-name(.) = 'sect3'"> 53 <xsl:number count="sect3"/> 54 </xsl:when> 55 <xsl:when test="local-name(.) = 'sect4'"> 56 <xsl:number count="sect4"/> 57 </xsl:when> 58 <xsl:when test="local-name(.) = 'sect5'"> 59 <xsl:number count="sect5"/> 60 </xsl:when> 61 <xsl:otherwise> 62 <xsl:message>label.markup: this can't happen!</xsl:message> 63 </xsl:otherwise> 64 </xsl:choose> 65 </xsl:when> 66 </xsl:choose> 67 </xsl:if> 68 </xsl:template> 69 70 <!-- Drop the trailing punctuation if title is empty --> 71 <xsl:template match="section|sect1|sect2|sect3|sect4|sect5|simplesect 72 |bridgehead" 73 mode="object.title.template"> 74 <xsl:choose> 75 <xsl:when test="$section.autolabel != 0"> 76 <xsl:if test="string-length(title) > 0"> 77 <xsl:call-template name="gentext.template"> 78 <xsl:with-param name="context" select="'title-numbered'"/> 79 <xsl:with-param name="name"> 80 <xsl:call-template name="xpath.location"/> 81 </xsl:with-param> 82 </xsl:call-template> 83 </xsl:if> 84 </xsl:when> 85 <xsl:otherwise> 86 <xsl:call-template name="gentext.template"> 87 <xsl:with-param name="context" select="'title-unnumbered'"/> 88 <xsl:with-param name="name"> 89 <xsl:call-template name="xpath.location"/> 90 </xsl:with-param> 91 </xsl:call-template> 92 </xsl:otherwise> 93 </xsl:choose> 94 </xsl:template> 20 95 21 96 <!-- Header --> … … 118 193 <!-- How render a variablelist --> 119 194 <xsl:param name="variablelist.as.blocks" select="1"/> 195 196 <!-- Adding space before segmentedlist --> 197 <xsl:template match="segmentedlist"> 198 <xsl:variable name="presentation"> 199 <xsl:call-template name="pi-attribute"> 200 <xsl:with-param name="pis" 201 select="processing-instruction('dbfo')"/> 202 <xsl:with-param name="attribute" select="'list-presentation'"/> 203 </xsl:call-template> 204 </xsl:variable> 205 <xsl:choose> 206 <xsl:when test="$presentation = 'table'"> 207 <xsl:apply-templates select="." mode="seglist-table"/> 208 </xsl:when> 209 <xsl:when test="$presentation = 'list'"> 210 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em" 211 space-before.maximum="0.8em"> 212 <xsl:apply-templates/> 213 </fo:block> 214 </xsl:when> 215 <xsl:when test="$segmentedlist.as.table != 0"> 216 <xsl:apply-templates select="." mode="seglist-table"/> 217 </xsl:when> 218 <xsl:otherwise> 219 <fo:block space-before.minimum="0.4em" space-before.optimum="0.6em" 220 space-before.maximum="0.8em"> 221 <xsl:apply-templates/> 222 </fo:block> 223 </xsl:otherwise> 224 </xsl:choose> 225 </xsl:template> 226 120 227 121 228 </xsl:stylesheet> -
stylesheets/xhtml/lfs-mixed.xsl
r536b6aa r01d6d63 26 26 <xsl:template match="variablelist"> 27 27 <div class="{name(.)}"> 28 <xsl:if test="title ">28 <xsl:if test="title | bridgehead"> 29 29 <xsl:choose> 30 30 <xsl:when test="@role = 'materials'"> 31 31 <h2> 32 <xsl:value-of select="title "/>32 <xsl:value-of select="title | bridgehead"/> 33 33 </h2> 34 34 </xsl:when> 35 35 <xsl:otherwise> 36 36 <h3> 37 <xsl:value-of select="title "/>37 <xsl:value-of select="title | bridgehead"/> 38 38 </h3> 39 39 </xsl:otherwise>
Note:
See TracChangeset
for help on using the changeset viewer.