Re: [xsl] Saxon removes namespace in XHTML output

Subject: Re: [xsl] Saxon removes namespace in XHTML output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 22 Aug 2006 14:39:01 +0100
> (XHTML namespace set up here on html element)
probably you have put xmlns="..." on the html element in your
stylesheet, this means that it is only in scope for that region of the
stylesheet, so when you generate a <p> in other templates that generates
a p in no-namespace which has to be serialised with xmlns="".
You want all result elements to be in xhtml so you want that to be the
default namespace in all of the stylesheet so put the namespace
declaration on xsl:stylesheet.

David

Current Thread