Changeset a988510 for stylesheets


Ignore:
Timestamp:
08/30/2004 07:47:54 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
6.0
Children:
debdf46
Parents:
c675d8c
Message:

Numbered sections for HTML output.

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

Location:
stylesheets
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-chunked2.xsl

    rc675d8c ra988510  
    1111    <!-- Including our others customized elements templates -->
    1212  <xsl:include href="xhtml/lfs-admon.xsl"/>
     13  <xsl:include href="xhtml/lfs-sections.xsl"/>
    1314  <xsl:include href="xhtml/lfs-mixed.xsl"/>
    1415  <xsl:include href="xhtml/lfs-titles.xsl"/>
  • stylesheets/xhtml/lfs-mixed.xsl

    rc675d8c ra988510  
    7373  </xsl:template>
    7474
    75    <!-- Sect1 attributes -->
    76   <xsl:template match="sect1">
    77     <div>
    78       <xsl:choose>
    79         <xsl:when test="@role">
    80           <xsl:attribute name="class">
    81             <xsl:value-of select="@role"/>
    82           </xsl:attribute>
    83         </xsl:when>
    84         <xsl:otherwise>
    85           <xsl:attribute name="class">
    86             <xsl:value-of select="name(.)"/>
    87           </xsl:attribute>
    88         </xsl:otherwise>
    89       </xsl:choose>
    90       <xsl:call-template name="language.attribute"/>
    91       <xsl:call-template name="sect1.titlepage"/>
    92       <xsl:apply-templates/>
    93       <xsl:call-template name="process.chunk.footnotes"/>
    94     </div>
    95   </xsl:template>
    96 
    97     <!-- Sect2 attributes -->
    98   <xsl:template match="sect2">
    99     <div>
    100       <xsl:choose>
    101         <xsl:when test="@role">
    102           <xsl:attribute name="class">
    103             <xsl:value-of select="@role"/>
    104           </xsl:attribute>
    105         </xsl:when>
    106         <xsl:otherwise>
    107           <xsl:attribute name="class">
    108             <xsl:value-of select="name(.)"/>
    109           </xsl:attribute>
    110         </xsl:otherwise>
    111       </xsl:choose>
    112       <xsl:call-template name="language.attribute"/>
    113       <xsl:call-template name="sect2.titlepage"/>
    114       <xsl:apply-templates/>
    115       <xsl:call-template name="process.chunk.footnotes"/>
    116     </div>
    117   </xsl:template>
    118 
    11975</xsl:stylesheet>
  • stylesheets/xhtml/lfs-titles.xsl

    rc675d8c ra988510  
    88    <div class="titlepage">
    99      <h1 class="{name(.)}">
     10        <xsl:apply-templates select="." mode="label.markup"/>
     11        <xsl:text>. </xsl:text>
    1012        <xsl:value-of select="title"/>
    1113      </h1>
     
    1618    <div class="titlepage">
    1719      <h1 class="{name(.)}">
     20        <xsl:apply-templates select="." mode="label.markup"/>
     21        <xsl:text>. </xsl:text>
    1822        <xsl:value-of select="title"/>
    1923      </h1>
     
    3842          </xsl:if>
    3943          <h2 class="{name(.)}">
     44            <xsl:apply-templates select="." mode="label.markup"/>
     45            <xsl:text>. </xsl:text>
    4046            <xsl:value-of select="title"/>
    4147          </h2>
     
    4551        <div class="titlepage">
    4652          <h1 class="{name(.)}">
     53            <xsl:apply-templates select="." mode="label.markup"/>
     54            <xsl:text>. </xsl:text>
    4755            <xsl:value-of select="title"/>
    4856          </h1>
     
    6169          </xsl:if>
    6270          <h2 class="{name(.)}">
     71            <xsl:apply-templates select="." mode="label.markup"/>
     72            <xsl:text>. </xsl:text>
    6373            <xsl:value-of select="title"/>
    6474          </h2>
  • stylesheets/xhtml/lfs-toc.xsl

    rc675d8c ra988510  
    77    <!-- General settings -->
    88  <xsl:param name="generate.toc">
    9     appendix  toc
     9    appendix  nop
    1010    book      toc,title,figure,table,example,equation
    1111    chapter   nop
Note: See TracChangeset for help on using the changeset viewer.