]> granicus.if.org Git - docbook-dsssl/commitdiff
Make sure that uses of the xsl:element element preserve the XHTML namespace
authorNorman Walsh <ndw@nwalsh.com>
Thu, 7 Feb 2002 18:02:25 +0000 (18:02 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 7 Feb 2002 18:02:25 +0000 (18:02 +0000)
xsl/xhtml/html2xhtml.xsl

index 38772bdcae3bae0396e86bd268115411c944f35b..80ba5cbf9530cf9bea8cfed57bef0cf119babcdc 100644 (file)
   </xsl:choose>
 </xsl:template>
 
+<xsl:template match="xsl:element">
+  <!-- make sure literal xsl:element declarations propagate the right namespace -->
+  <xsl:copy>
+    <xsl:copy-of select="@*"/>
+    <xsl:attribute name="namespace">http://www.w3.org/1999/xhtml</xsl:attribute>
+    <xsl:apply-templates/>
+  </xsl:copy>
+</xsl:template>
+
 <xsl:template match="xsl:template[@name='body.attributes']">
   <xsl:copy>
     <xsl:copy-of select="@*"/>