Re: [xsl] removing a null namespace

Subject: Re: [xsl] removing a null namespace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 29 Apr 2005 13:11:22 +0100
The XSLT system never changes the namespace of an element automatically.

You show output of

       <h1 xmlns="">header</h1>

so either

this is an h1 in no-namespace copied from the source, in which case you
don't want to use copy-of you want to apply a template that changes
elements in no-namespace to elements in the xhtml namespace


this is an h1 in no-namespace created in teh stylesheet, in which case
you want to change the stylesheet to create the element in teh xhtml

It looks as if you have the first case, so your input isn't really

A template such as
<xsl:template match="*">
<xsl:element name="local-name()" namespace="";>
<xsl:copy-of select="@*"/>

will convert elements in no-namespace into xhtml namepsaced elements
with the same local name.


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread