]> granicus.if.org Git - docbook-dsssl/commitdiff
make synopsises work for --arg=foo <arg>s too
authorMartijn van Beers <lotr@users.sourceforge.net>
Thu, 9 May 2002 13:57:55 +0000 (13:57 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Thu, 9 May 2002 13:57:55 +0000 (13:57 +0000)
contrib/xsl/db2man/synop.xsl

index dd3e0a4ea977d757369bd0cc4f9bf87a71a032ea..aa3e95e0f3d0199d0711327871df75011f0818e5 100644 (file)
@@ -27,7 +27,7 @@
   <xsl:if test="position()>1"><xsl:value-of select="$sepchar"/></xsl:if>
   <xsl:choose>
     <xsl:when test="$choice='plain'">
-      <xsl:value-of select="$arg.choice.plain.open.str"/>
+      <!-- do nothing -->
     </xsl:when>
     <xsl:when test="$choice='req'">
       <xsl:value-of select="$arg.choice.req.open.str"/>
@@ -56,7 +56,9 @@
   </xsl:choose>
   <xsl:choose>
     <xsl:when test="$choice='plain'">
+      <xsl:if test='arg'>
       <xsl:value-of select="$arg.choice.plain.close.str"/>
+      </xsl:if>
     </xsl:when>
     <xsl:when test="$choice='req'">
       <xsl:value-of select="$arg.choice.req.close.str"/>