Bioghist entire ead

From DLXS Documentation

Revision as of 11:57, 29 July 2008 by Tburtonw (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Back to Changing the Bioghist labels

This is an excerpt from the template that matches the entire EAD in a collections specific copy of text.components.xsl showing the code to render the first <head> in the <bioghist>. See $DLXSROOT/web/d/demofa/text.components.xsl for a complete example.


  <!-- __________ Filter entire ead __________ -->
  <xsl:template match="ead" mode="main">
    ...
    ...
    <!-- ____________________ -->
    <xsl:if test="archdesc/bioghist">
      <xsl:choose>
        <xsl:when test="archdesc/bioghist/head">
          <div class="tophead">
          <xsl:value-of select="archdesc/bioghist/head"/>
        </div>
        </xsl:when>
        <xsl:otherwise>
          <div class="tophead">
            <!-- default when there is no head should go here This should be the same as whats in the TOCheads hash-->
            Biographical/Historical Note
          </div>
        </xsl:otherwise>
      </xsl:choose>
      <blockquote>
        <xsl:apply-templates select="archdesc/bioghist"/>
      </blockquote>
      <br/>
    </xsl:if>
    ...
   </xsl:template>
Personal tools