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.
The xsl:for-each iterates over the author elements.
Each author's name is wrapped in a div element with class="colophon-author".
<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>
|