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

6.3.6. The author.colophon.mode template

This template takes as input a DocBook authorgroup element, extracts each author's name, and wraps each in a div element to put it on a separate line.

<xsl:template match="authorgroup" mode="author.colophon.mode">
  <xsl:for-each select="author">
    <div class="colophon-author">
      <xsl:value-of select="./firstname"/>
      <xsl:text> </xsl:text>
      <xsl:value-of select="./surname"/>
    </div>
  </xsl:for-each>
</xsl:template>