1.1 --- a/XSLForms/XSL/FixNamespace.xsl Thu Feb 02 02:49:16 2006 +0000
1.2 +++ b/XSLForms/XSL/FixNamespace.xsl Thu Feb 02 16:12:26 2006 +0000
1.3 @@ -30,9 +30,25 @@
1.4
1.5
1.6
1.7 - <!-- Remove the mangled template namespace declaration. -->
1.8 + <!-- Process the root element. -->
1.9
1.10 - <xsl:template match="@template">
1.11 + <xsl:template match="/">
1.12 + <xsl:for-each select="*">
1.13 + <!-- NOTE: Not stating the namespace explicitly. -->
1.14 + <xsl:element name="{name()}">
1.15 + <xsl:for-each select="//@expr-prefix">
1.16 + <xsl:attribute namespace="{substring-after(string(), ' ')}" name="{substring-before(string(), ' ')}:{name()}"><xsl:value-of select="string()"/></xsl:attribute>
1.17 + </xsl:for-each>
1.18 + <xsl:apply-templates select="@*|node()"/>
1.19 + </xsl:element>
1.20 + </xsl:for-each>
1.21 + </xsl:template>
1.22 +
1.23 +
1.24 +
1.25 + <!-- Remove the mangled template namespace declaration and other declarations. -->
1.26 +
1.27 + <xsl:template match="@template|@expr-prefix">
1.28 </xsl:template>
1.29
1.30