RE: [xsl] Removing xmlns attributes from html tags

Subject: RE: [xsl] Removing xmlns attributes from html tags
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 28 Mar 2001 15:57:04 +0100
> Just one small question more though concerning this.
>
> When I inserted the line:
> - exclude-result-prefixes="#default xmlns common style user"
> it didnt remove the default xmlns which was set to:
> - xmlns="http://www.w3.org/TR/REC-html40";
> When I removed this line every xmlns was gone in my html.
>
> So, is there a way to remove this xmlns also ?

You can't remove the declaration of a namespace which your result document
actually uses. If you output elements in the namespace
"http://www.w3.org/TR/REC-html40";, you will always get a namespace
declaration for that namespace.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread