]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle othercredit on titlepage a little better
authorNorman Walsh <ndw@nwalsh.com>
Sat, 12 Apr 2003 21:03:12 +0000 (21:03 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 12 Apr 2003 21:03:12 +0000 (21:03 +0000)
xsl/fo/titlepage.xsl

index 3275599fb00b8e1607a0c48153cfcb40a37d3d1e..f0b7cb0806c4a34861be7819140b0885efa18baa 100644 (file)
     <xsl:if test="@id">
       <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
     </xsl:if>
-    <xsl:call-template name="gentext">
-      <xsl:with-param name="key" select="'by'"/>
-    </xsl:call-template>
-    <xsl:text> </xsl:text>
-    <xsl:call-template name="person.name.list"/>
+    <xsl:apply-templates mode="titlepage.mode"/>
   </fo:block>
 </xsl:template>
 
       <xsl:with-param name="key" select="'by'"/>
     </xsl:call-template>
     <xsl:text> </xsl:text>
-    <xsl:call-template name="person.name.list"/>
+    <xsl:call-template name="person.name.list">
+      <xsl:with-param name="person.list" select="author|corpauthor|editor"/>
+    </xsl:call-template>
   </fo:block>
+  <xsl:apply-templates select="othercredit" mode="titlepage.mode"/>
 </xsl:template>
 
 <xsl:template match="bookinfo/author" mode="titlepage.mode" priority="2">
   <fo:block>
-    <xsl:call-template name="gentext">
-      <xsl:with-param name="key" select="'by'"/>
-    </xsl:call-template>
-    <xsl:text> </xsl:text>
     <xsl:call-template name="person.name"/>
   </fo:block>
 </xsl:template>
 
 <xsl:template match="bookinfo/corpauthor" mode="titlepage.mode" priority="2">
   <fo:block>
-    <xsl:call-template name="gentext">
-      <xsl:with-param name="key" select="'by'"/>
-    </xsl:call-template>
-    <xsl:text> </xsl:text>
     <xsl:apply-templates/>
   </fo:block>
 </xsl:template>