Re: Problem with namespace and server-side XSLT

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>
Georges Discry wrote:

> It seems that I'll have to use a <xsl:attribute name="xmlns"> to cope 
> with this problem...

Namespace declarations are not attributes in terms of the XSLT/XPath 
data model so trying to create a namespace declaration with 
xsl:attribute is not going to work.

I am not sure what exactly you are trying to do but a namespace 
declaration needs to be done on an element itself or an ancestor so you 
need e.g.
   <xsl:stylesheet
     xmlns="http://www.w3.org/1999/xhtml"
or e.g.
   <xsl:template match="/"
     xmlns="http://www.w3.org/1999/xhtml">

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
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.