]> granicus.if.org Git - docbook-dsssl/commitdiff
Handle dtx:empty correctly
authorNorman Walsh <ndw@nwalsh.com>
Tue, 30 Mar 2010 03:22:54 +0000 (03:22 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 30 Mar 2010 03:22:54 +0000 (03:22 +0000)
docbook/relaxng/tools/rng2dtd/style/dtx2dtd.xsl

index c55fcd18ac200513394f8d9af84b5eb9f27bfb9b..8b6726bb4f7f51ba191a997fe6bb70bbcaf86678 100644 (file)
       </xsl:for-each>
       <xsl:text>)</xsl:text>
     </xsl:when>
+    <xsl:when test="$cm/self::dtx:empty">
+      <xsl:apply-templates select="$cm"/>
+    </xsl:when>
     <xsl:otherwise>
       <xsl:text>(</xsl:text>
       <xsl:apply-templates select="$cm"/>
 
 <xsl:template name="implicit-group">
   <xsl:choose>
-    <xsl:when test="count(*) &gt; 1">
+    <xsl:when test="count(*) &gt; 1 and not(dtx:empty)">
       <xsl:text>(</xsl:text>
       <xsl:for-each select="*">
         <xsl:if test="position() &gt; 1">, </xsl:if>