This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Removing xmlns attributes from html tags
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Removing xmlns attributes from html tags
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 28 Mar 2001 15:57:04 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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