]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed handling of punctuation for Funcparams in HTML output.
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 7 Apr 2006 01:03:31 +0000 (01:03 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 7 Apr 2006 01:03:31 +0000 (01:03 +0000)
Closes #1213275.

xsl/html/synop.xsl

index e9cb08ab8b4c392b1ebe8f3fd2365eeaf4afc176..76786b5947af82d9d8ec1db65af0cbbfd585d7b6 100644 (file)
@@ -302,7 +302,6 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <code>(</code>
   <xsl:apply-templates mode="kr-funcsynopsis-mode"/>
   <code>)</code>
-  <xsl:text>;</xsl:text>
 </xsl:template>
 
 <!-- ====================================================================== -->
@@ -606,12 +605,21 @@ paramdef      ::= (#PCDATA|type|replaceable|parameter|funcparams)*
   <xsl:choose>
     <xsl:when test="type and funcparams">
       <td>
-        <xsl:apply-templates select="type" mode="kr-tabular-funcsynopsis-mode"/>
+        <xsl:apply-templates select="type" mode="ansi-tabular"/>
         <xsl:text>&#160;</xsl:text>
       </td>
       <td>
         <xsl:apply-templates select="type/following-sibling::node()"
-                             mode="kr-tabular-funcsynopsis-mode"/>
+                             mode="ansi-tabular"/>
+        <xsl:choose>
+          <xsl:when test="following-sibling::*">
+            <xsl:text>, </xsl:text>
+          </xsl:when>
+          <xsl:otherwise>
+            <code>)</code>
+            <xsl:text>;</xsl:text>
+          </xsl:otherwise>
+        </xsl:choose>
       </td>
     </xsl:when>
     <xsl:otherwise>