]> granicus.if.org Git - docbook-dsssl/commitdiff
Make comma inserted after function/parameter or function/replaceable
authorBob Stayton <bobs@sagehill.net>
Tue, 6 Nov 2012 19:09:16 +0000 (19:09 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 6 Nov 2012 19:09:16 +0000 (19:09 +0000)
conditional on $function.parens to be consistent with the function template.

xsl/fo/inline.xsl
xsl/html/inline.xsl

index 8fe1759d9aec4c839ab2809d94fd9e28feb2f75c..69ea0b9555c6b67355c1f525b5c152fa6b4544ca 100644 (file)
 
 <xsl:template match="function/parameter" priority="2">
   <xsl:call-template name="inline.italicmonoseq"/>
-  <xsl:if test="following-sibling::*">
+  <xsl:if test="$function.parens != 0 and following-sibling::*">
     <xsl:text>, </xsl:text>
   </xsl:if>
 </xsl:template>
 
 <xsl:template match="function/replaceable" priority="2">
   <xsl:call-template name="inline.italicmonoseq"/>
-  <xsl:if test="following-sibling::*">
+  <xsl:if test="$function.parens != 0 and following-sibling::*">
     <xsl:text>, </xsl:text>
   </xsl:if>
 </xsl:template>
index 312dc83e44b700d32fb5e00930af5b604dd7bae8..ff4fdcb6706c0996c57ce1ad2ec6892e3bda78c4 100644 (file)
 
 <xsl:template match="function/parameter" priority="2">
   <xsl:call-template name="inline.italicmonoseq"/>
-  <xsl:if test="following-sibling::*">
+  <xsl:if test="$function.parens != 0 and following-sibling::*">
     <xsl:text>, </xsl:text>
   </xsl:if>
 </xsl:template>
 
 <xsl:template match="function/replaceable" priority="2">
   <xsl:call-template name="inline.italicmonoseq"/>
-  <xsl:if test="following-sibling::*">
+  <xsl:if test="$function.parens != 0 and following-sibling::*">
     <xsl:text>, </xsl:text>
   </xsl:if>
 </xsl:template>