Re: [xsl] Saxon removes namespace in XHTML output

Subject: Re: [xsl] Saxon removes namespace in XHTML output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 23 Aug 2006 11:08:42 +0100
> I also found that removing the xhtml 
> namespace from any element and having the following xsl:output 
> element also got rid of the out-of-namespace xhtml elements:

No that does something else. That takes _all_ the elements out of a
namespace so they are not xhtml at all. You then specify the xhtml dtd so
if the parser reading your output fetches the dtd then it will default
the xhtml namespace back, but many parsers (including firefox for
example) will not do this, and the Namespace rexc explictly recommends
that you do not rely on namespace defaulting for this reasonn.

What you want to do is put the p elements into the xhtml namespace.


Current Thread