Next / Previous / Contents / NM Tech homepage

7.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.

zdp_html.xsl
<!--author.colophon.mode: Display author(s)-->
<xsl:template match="d: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>