[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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="http://www.w3.org/1999/xhtml" >
>      <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
guess.

Michael Kay
http://www.saxonica.com/


Current Thread
Keywords