]> granicus.if.org Git - docbook-dsssl/commitdiff
Deal with the case where a pattern has an implicit group
authorNorman Walsh <ndw@nwalsh.com>
Sat, 23 Jul 2005 20:10:54 +0000 (20:10 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 23 Jul 2005 20:10:54 +0000 (20:10 +0000)
docbook/relaxng/tools/rngdocxml.xsl

index 9e28089d528031b893827a2877da202bd2f79283..9692cd71c98f5c108a5cb3d896281774c70aedef 100644 (file)
       <xsl:when test="$ref and $ref/rng:empty">
        <!-- just discard it -->
       </xsl:when>
+      <xsl:when test="$ref and count($ref/*) &gt; 1">
+       <!-- deal with the case where the pattern has an implicit group -->
+       <rng:group>
+         <xsl:copy-of select="$ref/*"/>
+       </rng:group>
+      </xsl:when>
       <xsl:when test="$ref">
        <xsl:copy-of select="$ref/*"/>
       </xsl:when>