Ignore:
Timestamp:
05/19/2004 08:16:58 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
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.0, 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:
8df9f63
Parents:
28501c7
Message:

HEAD: StyleSheets - unified the identation to use spaces.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/xhtml/lfs-index.xsl

    r28501c7 ra9e89d0  
    2121  <xsl:template match="index" mode="title.markup">
    2222    <xsl:value-of select="$index-title"/>
    23         </xsl:template>
     23  </xsl:template>
    2424 
    2525  <xsl:template name="index.titlepage">
    2626    <div class="titlepage">
    27         <h1 class="index">
    28                 <xsl:value-of select="$index-title"/>
    29                         </h1>
     27      <h1 class="index">
     28        <xsl:value-of select="$index-title"/>
     29      </h1>
    3030    </div>
    3131  </xsl:template>
    3232
    33         <!--Divisions-->
     33    <!--Divisions-->
    3434  <xsl:template match="indexterm" mode="index-div">
    3535    <xsl:param name="scope" select="."/>
    3636    <xsl:variable name="key" select="translate(substring(&primary;, 1, 1),&lowercase;,&uppercase;)"/>
    3737    <xsl:variable name="divtitle" select="translate($key, &lowercase;, &uppercase;)"/>
    38         <!-- Make sure that we don't generate a div if there are no terms in scope -->
     38      <!-- Make sure that we don't generate a div if there are no terms in scope -->
    3939    <xsl:if test="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1]) = 1]">
    4040      <div class="indexdiv">
    4141        <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)">
    4242          <h2>
    43                 <xsl:choose>
    44                 <xsl:when test="$divtitle = 'A'">
    45                 <xsl:text>Packages</xsl:text>
     43            <xsl:choose>
     44              <xsl:when test="$divtitle = 'A'">
     45                <xsl:text>Packages</xsl:text>
    4646             </xsl:when>
    4747             <xsl:when test="$divtitle = 'B'">
    48                 <xsl:text>Programs</xsl:text>
     48                <xsl:text>Programs</xsl:text>
    4949             </xsl:when>
    5050             <xsl:when test="$divtitle = 'C'">
    51                 <xsl:text>Libraries</xsl:text>
     51                <xsl:text>Libraries</xsl:text>
    5252             </xsl:when>
    5353             <xsl:when test="$divtitle = 'D'">
    54                 <xsl:text>Scripts</xsl:text>
     54                <xsl:text>Scripts</xsl:text>
    5555             </xsl:when>
    5656              <xsl:when test="$divtitle = 'E'">
     
    5858              </xsl:when>
    5959             <xsl:otherwise>
    60                         <xsl:value-of select="$divtitle"/>
    61                                                 </xsl:otherwise>
     60              <xsl:value-of select="$divtitle"/>
     61            </xsl:otherwise>
    6262           </xsl:choose>
    6363          </h2>
     
    6565        <ul>
    6666          <xsl:apply-templates select="key('letter', $key)[&scope;]
    67                                         [count(.|key('primary', &primary;)[&scope;][1])=1]" mode="index-primary">
     67                  [count(.|key('primary', &primary;)[&scope;][1])=1]" mode="index-primary">
    6868            <xsl:with-param name="scope" select="$scope"/>
    6969            <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/>
     
    7474  </xsl:template>
    7575
    76         <!-- Dropping the separator from here-->
     76    <!-- Dropping the separator from here-->
    7777  <xsl:template match="indexterm" mode="reference">
    7878    <xsl:param name="scope" select="."/>
     
    8181        <xsl:with-param name="scope" select="$scope"/>
    8282      </xsl:call-template>
    83         </xsl:template>
     83  </xsl:template>
    8484
    85         <!-- Changing the output tags and re-addind the separator-->
     85    <!-- Changing the output tags and re-addind the separator-->
    8686  <xsl:template match="indexterm" mode="index-primary">
    8787    <xsl:param name="scope" select="."/>
     
    8989    <xsl:variable name="refs" select="key('primary', $key)[&scope;]"/>
    9090    <li>
    91         <strong class="item">
    92         <xsl:value-of select="primary"/>
     91      <strong class="item">
     92        <xsl:value-of select="primary"/>
    9393        <xsl:text>: </xsl:text>
    94                         </strong>
     94      </strong>
    9595      <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section',
    96                                 concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
     96              concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
    9797              |ancestor-or-self::chapter |ancestor-or-self::appendix |ancestor-or-self::preface
    9898              |ancestor-or-self::sect1 |ancestor-or-self::sect2 |ancestor-or-self::sect3
     
    102102        </xsl:apply-templates>
    103103      </xsl:for-each>
    104         <xsl:if test="$refs/secondary">
     104      <xsl:if test="$refs/secondary">
    105105        <ul>
    106106          <xsl:apply-templates select="$refs[secondary and count(.|key('secondary',
    107                                         concat($key, &#34; &#34;, normalize-space(concat(secondary/@sortas,
     107                  concat($key, &#34; &#34;, normalize-space(concat(secondary/@sortas,
    108108                  secondary[not(@sortas)]))))[&scope;][1]) = 1]" mode="index-secondary">
    109109            <xsl:with-param name="scope" select="$scope"/>
    110110            <xsl:sort select="translate(normalize-space(concat(secondary/@sortas,
    111                                         secondary[not(@sortas)])), &lowercase;, &uppercase;)"/>
     111                    secondary[not(@sortas)])), &lowercase;, &uppercase;)"/>
    112112          </xsl:apply-templates>
    113                 </ul>
    114         </xsl:if>
     113         </ul>
     114      </xsl:if>
    115115    </li>
    116116  </xsl:template>
     
    119119    <xsl:param name="scope" select="."/>
    120120    <xsl:variable name="key" select="concat(&primary;, &#34; &#34;,
    121                                 normalize-space(concat(secondary/@sortas, secondary[not(@sortas)])))"/>
     121            normalize-space(concat(secondary/@sortas, secondary[not(@sortas)])))"/>
    122122    <xsl:variable name="refs" select="key('secondary', $key)[&scope;]"/>
    123123    <li>
    124         <strong class="secitem">
    125         <xsl:value-of select="secondary"/>
     124      <strong class="secitem">
     125        <xsl:value-of select="secondary"/>
    126126        <xsl:text>: </xsl:text>
    127                         </strong>
     127      </strong>
    128128      <xsl:for-each select="$refs[generate-id() = generate-id(key('secondary-section',
    129                                 concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
     129              concat($key, &#34; &#34;, generate-id((ancestor-or-self::book |ancestor-or-self::part
    130130              |ancestor-or-self::chapter |ancestor-or-self::appendix |ancestor-or-self::preface
    131131              |ancestor-or-self::sect1 |ancestor-or-self::sect2 |ancestor-or-self::sect3
Note: See TracChangeset for help on using the changeset viewer.