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 : > I'm using PHP with the DOM and XSL extensions to generate XHTML > documents (I had also met this problem with PHP4/DOM XML/XSLT). > Everything is going pretty like I want, except when it comes to the > default namespace of the "html" tag. > This namespace doesn't require a prefix (as it is a "default" namespace) > but if I doesn't specify one, the processor uses a generic one (ns1). > This is not a big issue, but I'd like to know if it's possible to avoid > that, except by using <xsl:attribute > name="xmlns">[namespace]</xsl:attribute>. > The main problem is more or less coming from Firefox, as it apparently > has a problem with XHTML served as application/xhtml+xml with a prefix > for the html element. > > Thanks, > Georges Discry Okay, so as always for me, I find a solution 5 minutes after asking a question for a problem which had bothered me for quite a long time ¬¬. So for those who are interested, I've specified the default namespace in the <xsl:stylesheet> tag and it works :D