]> granicus.if.org Git - docbook-dsssl/commitdiff
Preserve the namespace bindings for later
authorNorman Walsh <ndw@nwalsh.com>
Tue, 30 Mar 2010 00:29:55 +0000 (00:29 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 30 Mar 2010 00:29:55 +0000 (00:29 +0000)
docbook/relaxng/tools/rng2dtd/style/rng2dtx.xsl

index d26e486a35c33dc6d1fd2d4d079e64f4a84f395b..cc2f2f46b9708aa08cef40029d206f397d3018fb 100644 (file)
 
 <xsl:template match="rng:grammar">
   <dtd>
+    <xsl:for-each select="namespace::*">
+      <xsl:if test="local-name(.) != ''">
+        <xsl:copy-of select="."/>
+      </xsl:if>
+    </xsl:for-each>
     <xsl:apply-templates/>
   </dtd>
 </xsl:template>