]> granicus.if.org Git - docbook-dsssl/commitdiff
This patch adds support for:
authorMartijn van Beers <lotr@users.sourceforge.net>
Tue, 30 Apr 2002 15:55:56 +0000 (15:55 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Tue, 30 Apr 2002 15:55:56 +0000 (15:55 +0000)
- Multiple authors.
- A (single) man page editor.

(another patch from twaugh)

contrib/xsl/db2man/db2man.xsl

index 0345c3bd5f32a2adc8801fcec2b66022458cb10c..8a1fe3a6838fcfc1290e7dea5dfd243c95157b24 100644 (file)
 <xsl:template match="title"></xsl:template>
 <xsl:template match="abstract"></xsl:template>
 
-<xsl:template match="author">
+<xsl:template match="articleinfo|bookinfo|refentryinfo" mode="authorsect">
+  <xsl:text>.SH AUTHOR</xsl:text>
+  <xsl:if test="count(.//author)>1">
+    <xsl:text>S</xsl:text>
+  </xsl:if>
+  <xsl:text>&#10;</xsl:text>
+
+  <xsl:for-each select=".//author">
+    <xsl:if test="position() > 1">
+      <xsl:text>, </xsl:text>
+    </xsl:if>
+    <xsl:apply-templates select="."/>
+  </xsl:for-each>
+  <xsl:text>.&#10;</xsl:text>
+  <xsl:if test=".//editor">
+    <xsl:text>.br&#10;Man page edited by </xsl:text>
+    <xsl:apply-templates select=".//editor"/>
+    <xsl:text>.&#10;</xsl:text>
+  </xsl:if>
+</xsl:template>
+
+<xsl:template match="author|editor">
   <xsl:call-template name="person.name"/>
   <xsl:apply-templates select="./affiliation/address/email" />
 </xsl:template>