Changeset 09a4b2f for stylesheets


Ignore:
Timestamp:
10/13/2004 08:06:04 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
ec5839b
Parents:
4e86d59
Message:

Updated the nochunk stylesheet.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-nochunks.xsl

    r4e86d59 r09a4b2f  
    1515  <xsl:include href="xhtml/lfs-index.xsl"/>
    1616  <xsl:include href="xhtml/lfs-mixed.xsl"/>
    17   <xsl:include href="xhtml/lfs-navigational.xsl"/>
     17  <xsl:include href="xhtml/lfs-sections.xsl"/>
    1818  <xsl:include href="xhtml/lfs-toc.xsl"/>
     19  <xsl:include href="xhtml/lfs-xref.xsl"/>
    1920
    2021    <!-- Dropping some unwanted style attributes -->
    2122  <xsl:param name="ulink.target" select="''"></xsl:param>
    2223  <xsl:param name="css.decoration" select="0"></xsl:param>
     24
     25    <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)-->
     26  <xsl:template name="sect2.titlepage">
     27    <xsl:choose>
     28      <xsl:when test="string-length(title) = 0"/>
     29      <xsl:otherwise>
     30        <div class="titlepage">
     31          <xsl:if test="@id">
     32            <a id="{@id}" name="{@id}"/>
     33          </xsl:if>
     34          <h3 class="{name(.)}">
     35            <xsl:apply-templates select="." mode="label.markup"/>
     36            <xsl:text>. </xsl:text>
     37            <xsl:value-of select="title"/>
     38          </h3>
     39        </div>
     40      </xsl:otherwise>
     41    </xsl:choose>
     42  </xsl:template>
     43
     44    <!-- Added the role param for proper punctuation in xref calls
     45            (from lfs-titles.xsl). -->
     46  <xsl:template match="*" mode="insert.title.markup">
     47    <xsl:param name="purpose"/>
     48    <xsl:param name="xrefstyle"/>
     49    <xsl:param name="title"/>
     50    <xsl:param name="role"/>
     51    <xsl:choose>
     52      <xsl:when test="$purpose = 'xref' and titleabbrev">
     53        <xsl:apply-templates select="." mode="titleabbrev.markup"/>
     54      </xsl:when>
     55      <xsl:otherwise>
     56        <xsl:copy-of select="$title"/>
     57        <xsl:value-of select="$role"/>
     58      </xsl:otherwise>
     59    </xsl:choose>
     60  </xsl:template>
    2361
    2462    <!-- The CSS Stylesheet -->
     
    174212}
    175213
     214/* itemizedlist */
     215
     216div.itemizedlist {
     217  margin-left: 1em;
     218}
     219
    176220/* Indented blocks */
    177221p, ul, dl, code, blockquote {
Note: See TracChangeset for help on using the changeset viewer.