Changeset 5417


Ignore:
Timestamp:
2003-09-02T15:01:53+12:00 (21 years ago)
Author:
mdewsnip
Message:

Display sections and subsections differently. Ignore ObviousSentences. Changed link colour back to normal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/help/gen-one-html.xsl

    r5415 r5417  
    2020        <title>The Greenstone Librarian Interface - Help Pages</title>
    2121      </head>
    22       <body bgcolor="#E0F0E0"> <!-- link="#000000" vlink="#000000"> -->
     22      <body bgcolor="#E0F0E0">
    2323    <xsl:for-each select="Section">
    2424      <xsl:call-template name="processSection">
     
    2929    </html>
    3030  </xsl:template>
     31
     32  <xsl:template match="ObviousSentence"/>
    3133
    3234  <xsl:template match="Reference">
     
    6062  </xsl:template>
    6163
     64
    6265  <xsl:template name="processTitle">
    6366    <xsl:param name="sectionNumber"/>
    6467    <xsl:param name="sectionTitle"/>
    6568
    66     <h2>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/></h2>
     69    <xsl:choose>
     70      <xsl:when test="contains($sectionNumber, '.')">
     71        <h3>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/></h3>
     72      </xsl:when>
     73      <xsl:otherwise>
     74        <h1>Section <xsl:value-of select="concat($sectionNumber, ': ', $sectionTitle)"/></h1>
     75      </xsl:otherwise>
     76    </xsl:choose>
    6777  </xsl:template>
    6878
Note: See TracChangeset for help on using the changeset viewer.