xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary L Peskin <ga...@firstech.com>
Subject Re: Getting rid of xmlns attribute in <HTML> tag
Date Thu, 07 Jun 2001 13:14:31 GMT
Try adding the

  exclude-result-prefixes="Clouseau"

attribute to your xsl:stylesheet element.

HTH,
Gary

Dietrich Schulten wrote:
> 
> Hi,
> 
> I couldn't browse the general archive, so I'm not sure if this is a FAQ.
> I'm transforming to HTML using xalan-j 2 and receive an xmlns attribute
> in the HTML tag:
> 
> <html xmlns:Clouseau=
> "http://www.system-entwicklung.de/catalog/clouseau">
> ...
> </html>
> 
> JEditorPane's HTML parser stumbles upon this attribute, so I have to
> manually remove it from my html text before I feed it to JEditorPane. How
> can I tell Xalan not to insert this attribute into the HTML output?
> 
> Here's the beginning of my stylesheet:
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 xmlns:Clouseau=
>                    "http://www.system-entwicklung.de/catalog/clouseau"
>                 version="1.0"
> >
> <xsl:output method="html" encoding="ISO-8859-1"
> omit-xml-declaration="yes" />
> 
> Greetings,
> Dietrich

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message