Changeset 4fc487d


Ignore:
Timestamp:
Apr 23, 2011, 8:47:13 PM (13 years ago)
Author:
Joe Ciccone <jciccone@…>
Children:
1d86c775
Parents:
4f597816
git-author:
Joe Ciccone <jciccone@…> (04/23/11 20:24:23)
git-committer:
Joe Ciccone <jciccone@…> (04/23/11 20:47:13)
Message:

Cleanup the output of the seglist header of the content list sect2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/stylesheets/clfs-profile.xsl

    r4f597816 r4fc487d  
    235235          <xsl:choose>
    236236            <xsl:when test="string-length(@c:ref) > 0">
     237              <!-- Insert an xref to the actual contents list -->
    237238              <xsl:text>
    238 </xsl:text>
     239  </xsl:text>
    239240              <xsl:element name="title" />
    240241              <xsl:text>
    241242
    242 </xsl:text>
     243  </xsl:text>
    243244            <xsl:element name="para">
    244245              <xsl:text>Details on this package are located in </xsl:text>
     
    255256            </xsl:when>
    256257            <xsl:otherwise>
     258              <!-- This page gets the contents list -->
    257259              <xsl:attribute name="id">
    258260                <xsl:value-of select="$id" />
     
    260262              </xsl:attribute>
    261263              <xsl:text>
    262 </xsl:text>
     264  </xsl:text>
    263265              <xsl:element name="title">
    264266                <xsl:text>Contents of </xsl:text>
     
    268270
    269271</xsl:text>
     272              <!-- Begin the Summary List -->
    270273              <xsl:element name="segmentedlist">
    271274                <xsl:if test="count(c:library) &gt; 0">
     
    297300                    <xsl:text>
    298301    </xsl:text>
     302                    <!-- Begin the seg list for Libraries -->
    299303                    <xsl:element name="seg">
    300304                      <xsl:for-each select="c:library">
     
    316320                    <xsl:text>
    317321    </xsl:text>
     322                    <!-- Begin the seg list for Programs -->
    318323                    <xsl:element name="seg">
    319324                      <xsl:for-each select="c:program">
     
    335340                    <xsl:text>
    336341    </xsl:text>
     342                    <!-- Begin the seg list for Directories -->
    337343                    <xsl:element name="seg">
    338344                      <xsl:for-each select="c:directory">
    339345                        <xsl:value-of select="c:name" />
    340346                        <xsl:if test="count(../c:directory) &gt; 1">
    341                           <xsl:choose>
    342                             <xsl:when test="position() &lt; (last() - 1)">
    343                               <xsl:text>, </xsl:text>
    344                             </xsl:when>
    345                             <xsl:when test="position() = last() - 1">
    346                               <xsl:text> and </xsl:text>
    347                             </xsl:when>
    348                           </xsl:choose>
     347                          <xsl:if test="position() &lt; (last() - 1)">
     348                            <xsl:text>, </xsl:text>
     349                          </xsl:if>
     350                          <xsl:if test="position() = last() - 1">
     351                            <xsl:text> and </xsl:text>
     352                          </xsl:if>
    349353                        </xsl:if>
    350354                      </xsl:for-each>
     
    357361</xsl:text>
    358362              </xsl:element>
     363              <xsl:text>
     364
     365</xsl:text>
     366              <!-- Insert Short Desc List Here -->
     367              <!-- End of the Summary List -->
    359368            </xsl:otherwise>
    360369          </xsl:choose>
    361370          <xsl:text>
    362 
    363371</xsl:text>
    364372        </xsl:element>
     
    373381
    374382  </xsl:template><!-- package-stub -->
     383
     384  <!-- -->
    375385
    376386  <!-- Apply the profile to the 32bit package -->
Note: See TracChangeset for help on using the changeset viewer.