Re: Problem with namespace and server-side XSLT

Georges Discry <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Message-ID <[email protected]>
Georges Discry a écrit :
> So for those who are interested, I've specified the default namespace in 
> the <xsl:stylesheet> tag and it works :D
I still have issues with this technique, but it needs more explanation 
on how I use XSL.
To cope with content negotiation (so basically serve XHTML1.1 with 
application/xhtml+xml to Firefox/Opera/... and XHTML1.0 with text/html 
to IE, or even HTML4.01), I generate a virtual xsl document with the 
correct xsl:output element and I import the real xsl document.
The problem is that the default namespace is declared (or not) in the 
virtual xsl. But this one doesn't generate any code by itself, and it 
seems that the default namespace has to be declared in the xsl document 
generating the html element.
It seems that I'll have to use a <xsl:attribute name="xmlns"> to cope 
with this problem...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.