RE: [xsl] xmlns="" / XML to XHTML

Subject: RE: [xsl] xmlns="" / XML to XHTML
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 13 Sep 2005 11:21:05 +0100
> Michael, you meant I should skip this example and modify my second
> example (based on pawson4s FAQ)?:
> <xsl:template match="*">
>     <xsl:element name="{local-name()}"
>   namespace=""; >
>      <xsl:apply-templates />
>     </xsl:element>
> </xsl:template>
> So the problem there was, that my inner elements didn4t get the ns
> although the outer elements were created correct in the xhtml
> namespace.
> So I ask why does it not apply the namespace to the inner elements or
> what should I modify?

Perhaps you copied the inner elements using xsl:copy-of rather than
xsl:apply-templates, so the above template would have no effect. Just a

Michael Kay

Current Thread