[XSL-LIST Mailing List Archive Home]
Re: [xsl] html as input to xslt
Subject: Re: [xsl] html as input to xslt|
From: Owen Rees <owen.rees@xxxxxx>
Date: Thu, 06 Sep 2007 13:01:16 +0100
--On Wednesday, September 05, 2007 02:31:22 PM -0400 Lou Iorio wrote:
I'd rather not have the xhtml name stuff in the output. Is there a way
Since you are using XSLT 2 and the HTML output method you should look at
what that means:
In particular "The HTML output method MUST NOT output an element
differently from the XML output method unless the expanded QName of the
element has a null namespace URI."
If you intend the output to be HTML and the input is XHTML (and so in the
XHTML namespace) you have to convert those input elements to elements with
a null namespace URI.
The "Removing Namespaces" FAQ entry shows how to do that:
Note that the "<p>other stuff</p>" in the transform is already in the null
namespace so should work as it is.
Hewlett-Packard Limited. Registered No: 690597 England
Registered Office: Cain Road, Bracknell, Berks RG12 1HN