]> granicus.if.org Git - docbook-dsssl/commitdiff
Slides #862918: improve formatting of multiple othercredits in slideinfo
authorNorman Walsh <ndw@nwalsh.com>
Fri, 19 Dec 2003 13:35:48 +0000 (13:35 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 19 Dec 2003 13:35:48 +0000 (13:35 +0000)
slides/xsl/html/slides-common.xsl

index 73c3b4abfba8abf3393511854e5bb951f7be9a62..4b060efac183bd1fe79bdf46d6a24efc332cb95f 100644 (file)
   <!-- nop -->
 </xsl:template>
 
+<!-- On slides, output the credits explicitly each time -->
+<xsl:template match="othercredit" mode="titlepage.mode">
+  <xsl:variable name="contrib" select="string(contrib)"/>
+  <xsl:choose>
+    <xsl:when test="contrib">
+      <xsl:call-template name="paragraph">
+       <xsl:with-param name="class" select="name(.)"/>
+       <xsl:with-param name="content">
+         <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
+         <xsl:text>: </xsl:text>
+         <xsl:call-template name="person.name"/>
+         <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
+       </xsl:with-param>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:call-template name="paragraph">
+        <xsl:with-param name="class" select="name(.)"/>
+        <xsl:with-param name="content">
+          <xsl:call-template name="person.name"/>
+        </xsl:with-param>
+      </xsl:call-template>
+      <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
 <!-- ====================================================================== -->
 <!-- toc -->