RE: [xsl] omit namespaces

Subject: RE: [xsl] omit namespaces
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 8 Apr 2005 19:33:09 +0100
> I have <h1 xmlns=""> tags in the resultant html documents. I 
> want <h1> only.  Not all html tags has the xmlns="" part.
> 
> How are they produced? How can I change it?

They are probably produced because they have a parent element that assigns
the default namespace to something else - look for an xmlns="some.uri" - and
the XSLT processor needs to cancel this namespace declaration in order to
put the h1 elements in the null namespace, which is where you want them.
Look at the code that generates the parent element: do you want this in a
namespace or not?

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

Current Thread