]> granicus.if.org Git - docbook-dsssl/commitdiff
Bug #605150: process arg correctly even when it's in a group
authorNorman Walsh <ndw@nwalsh.com>
Fri, 20 Sep 2002 14:09:38 +0000 (14:09 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Fri, 20 Sep 2002 14:09:38 +0000 (14:09 +0000)
xsl/fo/synop.xsl
xsl/html/synop.xsl

index f9c163bf9ee2c04a698d8daa22f3315817064854..2d5542ed751d24e948e16742aed274be4705fc6e 100644 (file)
@@ -39,7 +39,7 @@
   <xsl:text> </xsl:text>
 </xsl:template>
 
-<xsl:template match="group|arg">
+<xsl:template match="group|arg" name="group-or-arg">
   <xsl:variable name="choice" select="@choice"/>
   <xsl:variable name="rep" select="@rep"/>
   <xsl:variable name="sepchar">
@@ -99,7 +99,7 @@
   <xsl:variable name="choice" select="@choice"/>
   <xsl:variable name="rep" select="@rep"/>
   <xsl:if test="position()>1"><xsl:value-of select="$arg.or.sep"/></xsl:if>
-  <xsl:apply-templates/>
+  <xsl:call-template name="group-or-arg"/>
 </xsl:template>
 
 <xsl:template match="sbr">
index 432771eb3352e0f9b6dfe97d3ccb57fc560f9d67..57f9fea477aa3d7d408dc79407fcfcf2b02da291 100644 (file)
@@ -41,7 +41,7 @@
   <xsl:text> </xsl:text>
 </xsl:template>
 
-<xsl:template match="group|arg">
+<xsl:template match="group|arg" name="group-or-arg">
   <xsl:variable name="choice" select="@choice"/>
   <xsl:variable name="rep" select="@rep"/>
   <xsl:variable name="sepchar">
   <xsl:variable name="choice" select="@choice"/>
   <xsl:variable name="rep" select="@rep"/>
   <xsl:if test="position()>1"><xsl:value-of select="$arg.or.sep"/></xsl:if>
-  <xsl:apply-templates/>
+  <xsl:call-template name="group-or-arg"/>
 </xsl:template>
 
 <xsl:template match="sbr">