]> granicus.if.org Git - docbook-dsssl/commitdiff
Revert change made to fix-params-ns.xsl to cause namespaces to be
authorMichael Smith <xmldoc@users.sourceforge.net>
Fri, 20 Jul 2007 15:28:55 +0000 (15:28 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Fri, 20 Jul 2007 15:28:55 +0000 (15:28 +0000)
copied over.

xsl/tools/xsl/build/fix-params-ns.xsl

index 5c72313e1bad054a3f01307097cb5981e8009838..18951e61ebff01abc951f814dfc7e1869157b295 100644 (file)
@@ -5,19 +5,20 @@
   exclude-result-prefixes="fo"
 >
   <xsl:import href="./identity.xsl"/>
+
   <xsl:output method="xml"
   encoding="ASCII"
   saxon:character-representation="decimal"
   indent="no"/>
-  <xsl:template match="*[not(local-name() = 'stylesheet')][namespace-uri() = 'http://www.w3.org/1999/XSL/Transform']">
-    <!-- * copy all xsl:* elements but strip the extra namespaces nodes -->
+  <xsl:template match="*[namespace-uri() = 'http://www.w3.org/1999/XSL/Transform']">
+  <!-- * copy all xsl:* elements but strip the extra namespaces nodes -->
     <xsl:element name="{name()}">
       <xsl:copy-of select="@*[not(local-name() = 'exclude-result-prefixes')]"/>
       <xsl:apply-templates/>
     </xsl:element>
   </xsl:template>
-  <xsl:template match="*[not(local-name() = 'stylesheet')][namespace-uri() = 'http://www.w3.org/1999/XSL/Format']">
-    <!-- * copy all fo:* elements but strip the extra namespace nodes -->
+  <xsl:template match="*[namespace-uri() = 'http://www.w3.org/1999/XSL/Format']">
+  <!-- * copy all fo:* elements but strip the extra namespace nodes -->
     <xsl:element name="{name()}">
       <xsl:copy-of select="@*"/>
       <xsl:apply-templates/>
@@ -35,4 +36,5 @@
       <xsl:apply-templates/>
     </xsl:element>
   </xsl:template>
+
 </xsl:stylesheet>