Changeset 01d6d63 for stylesheets


Ignore:
Timestamp:
08/10/2004 07:25:59 PM (20 years ago)
Author:
Gerard Beekmans <gerard@…>
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
Message:

synced testing branch stylesheets

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4023 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
stylesheets
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-print.xsl

    r536b6aa r01d6d63  
    1414
    1515    <!-- Paper size required by the publisher -->
    16   <xsl:param name="paper.type" select="'Cunstommized'"/>
     16  <xsl:param name="paper.type" select="'Customized'"/>
    1717  <xsl:param name="page.width">7.25in</xsl:param>
    1818  <xsl:param name="page.height">9.25in</xsl:param>
     
    3737
    3838    <!-- 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>
    4040  <xsl:template match="*" mode="page.citation">
    4141    <xsl:param name="id" select="'???'"/>
    4242    <fo:inline keep-together.within-line="always">
    43       <xsl:text>[p</xsl:text>
     43      <!--<xsl:text>[p</xsl:text>-->
    4444      <fo:page-number-citation ref-id="{$id}"/>
    45       <xsl:text>]</xsl:text>
     45      <!--<xsl:text>]</xsl:text>-->
    4646    </fo:inline>
    4747  </xsl:template>
     
    5050  <xsl:param name="ulink.show" select="0"/>
    5151
     52    <!-- Sections numbering -->
     53  <xsl:param name="section.autolabel" select="1"/>
     54  <xsl:param name="section.label.includes.component.label" select="1"/>
     55
    5256</xsl:stylesheet>
  • stylesheets/patcheslist.xsl

    r536b6aa r01d6d63  
    88  <xsl:output method="text"/>
    99
    10   <xsl:param name="links.directory">lfs/cvs/unstable/</xsl:param>
     10  <xsl:param name="links.directory">lfs/cvs/testing/</xsl:param>
    1111  <xsl:param name="deep.to.downloads">../../../</xsl:param>
    1212
     
    5252      <xsl:text>/</xsl:text>
    5353      <xsl:value-of select="substring-after(@url, $links.directory)"/>
    54       <xsl:text> . &amp;&amp;&#x0a;</xsl:text>
     54      <xsl:text> . &#x0a;</xsl:text>
    5555    </xsl:if>
    5656  </xsl:template>
  • stylesheets/print/lfs-pagesetup.xsl

    r536b6aa r01d6d63  
    1818    </xsl:attribute>
    1919  </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>
    2095
    2196    <!-- Header -->
     
    118193    <!-- How render a variablelist -->
    119194  <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
    120227
    121228</xsl:stylesheet>
  • stylesheets/xhtml/lfs-mixed.xsl

    r536b6aa r01d6d63  
    2626  <xsl:template match="variablelist">
    2727    <div class="{name(.)}">
    28       <xsl:if test="title">
     28      <xsl:if test="title | bridgehead">
    2929        <xsl:choose>
    3030          <xsl:when test="@role = 'materials'">
    3131            <h2>
    32               <xsl:value-of select="title"/>
     32              <xsl:value-of select="title | bridgehead"/>
    3333            </h2>
    3434          </xsl:when>
    3535          <xsl:otherwise>
    3636            <h3>
    37               <xsl:value-of select="title"/>
     37              <xsl:value-of select="title | bridgehead"/>
    3838            </h3>
    3939          </xsl:otherwise>
Note: See TracChangeset for help on using the changeset viewer.