]> granicus.if.org Git - docbook-dsssl/commitdiff
In person.name template, change 'style' variable to a param
authorBob Stayton <bobs@sagehill.net>
Wed, 28 Aug 2013 16:59:02 +0000 (16:59 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 28 Aug 2013 16:59:02 +0000 (16:59 +0000)
so the name style can be selected by passing a param.

xsl/common/common.xsl

index 09505257d720f436b8059b56b27c0018e8aff289..d62bcc9862a40a505ba35946dd128125382c0ae4 100644 (file)
@@ -479,7 +479,7 @@ Defaults to the context node.</para>
   <!-- Formats a personal name. Handles corpauthor as a special case. -->
   <xsl:param name="node" select="."/>
 
-  <xsl:variable name="style">
+  <xsl:param name="style">
     <xsl:choose>
       <xsl:when test="$node/@role">
         <xsl:value-of select="$node/@role"/>
@@ -491,7 +491,7 @@ Defaults to the context node.</para>
         </xsl:call-template>
       </xsl:otherwise>
     </xsl:choose>
-  </xsl:variable>
+  </xsl:param>
 
   <xsl:choose>
     <!-- the personname element is a specialcase -->