Next / Previous / Contents / TCC Help System / NM Tech homepage

7.3.4. The tcc.bot.links template

This template outputs the standard TCC page-bottom navigational links. These links start with a boldfaced term such as “Next” that match the links on the top of the page, followed by a link to the target page using that page's title as the link text. Each link line is wrapped in its own div element, and the entire set of links is wrapped in another div with class="botlinks" to allow CSS markup.

tcc_html.xsl
<xsl:template name="tcc.bot.links">
  <xsl:param name="prev"/>
  <xsl:param name="next"/>
  <xsl:param name="home"/>
  <div class="botlinks">

First comes the “Next” link.

tcc_html.xsl
    <xsl:if test="count($next) &gt; 0">
      <div class="bot-next">
        <b>Next: </b>
        <a>
          <xsl:attribute name="href">
            <xsl:call-template name="href.target">
              <xsl:with-param name="object" select="$next"/>
            </xsl:call-template>
          </xsl:attribute>
          <xsl:apply-templates select="$next" mode="object.title.markup"/>
        </a>       
      </div>
    </xsl:if>

Next comes the “Contents” link, similarly, wrapped in a div with class="bot-contents".

tcc_html.xsl
    <xsl:if test="$home != .">
      <div class="bot-contents">
        <b>Contents: </b>
        <a>
          <xsl:attribute name="href">
            <xsl:call-template name="href.target">
              <xsl:with-param name="object" select="$home"/>
            </xsl:call-template>
          </xsl:attribute>
          <xsl:apply-templates select="$home" mode="object.title.markup"/>
        </a>       
      </div>
    </xsl:if>

The “Previous” link works just like the “Next” link.

tcc_html.xsl
    <xsl:if test="count($prev) &gt; 0">
      <div class="bot-prev">
        <b>Previous: </b>
        <a>
          <xsl:attribute name="href">
            <xsl:call-template name="href.target">
              <xsl:with-param name="object" select="$prev"/>
            </xsl:call-template>
          </xsl:attribute>
          <xsl:apply-templates select="$prev" mode="object.title.markup"/>
        </a>       
      </div>
    </xsl:if>

The last two links, “Help” and “Home”, always point to the same places.

tcc_html.xsl
    <div><b>Help: </b>
        <a href="http://www.nmt.edu/tcc/help/">Tech Computer
        Center: Help System</a></div>
    <div><b>Home: </b> 
       <a href="http://www.nmt.edu/">About New Mexico Tech</a></div>
  </div>
</xsl:template>