cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <>
Subject Re: XSLT and Namespaces Problem
Date Wed, 12 Nov 2003 17:54:52 GMT
On 12.11.2003 03:32, Conal Tuohy wrote:

> I think it is a bug in the XSLT, actually. I think using <xsl:element
> name="{name()}"/> and <xsl:attribute name="{name()}"/> is the cause
> of the problem. These will copy the namespace prefixes, but not the
> namespaces themselves. So this really ought to fail, just as if you
> had:
> <xsl:attribute
> name="totally-undeclared-namespace:foo">bar</xsl:attribute>

This sounds reasonable, have you tried if it's the case? Do you know if 
it's spec conform? The above means, that it is possible to create 
stylesheets working on some XML inputs, but not all. Another reason for 
avoiding name() where possible as it is not namespace safe.


>> -----Original Message----- From: Antonio Gallardo
>> []
>> Joerg Heinicke dijo:
>>> And I really wonder about this Xalan message! A not
>> available namespace
>>> declaration should result in an error - and it normally does so
>>> with Xalan too, I never only get a warning.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message