[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xalan-c-users
Subject:    Re: Default namespace and xsl:element in version 1.10
From:       David Bertoni <dbertoni () apache ! org>
Date:       2008-04-15 18:34:22
Message-ID: 4804F52E.6050304 () apache ! org
[Download RAW message or body]

Per Ced wrote:
> Hi,
>  
> Has upgraded xalan-c from version 1.4 to 1.10 and noticed that
> default namespace is not shown in the result document, compared to the 
> old xalan version,
> when using the <xsl:element>
> Is it a bug or a fix in the new version?
Hmm, I though it was a fix, but perhaps it a bug after all.  I'll need 
to do some research into the history, since I remember this coming up.

The XSLT recommendation is explicit:

http://www.w3.org/TR/xslt#section-Creating-Elements-with-xsl:element

"The name attribute is interpreted as an attribute value template. It is 
an error if the string that results from instantiating the attribute 
value template is not a QName. An XSLT processor may signal the error; 
if it does not signal the error, then it must recover by making the the 
result of instantiating the xsl:element element be the sequence of nodes 
created by instantiating the content of the xsl:element element, 
excluding any initial attribute nodes. If the namespace attribute is not 
present then the QName is expanded into an expanded-name using the 
namespace declarations in effect for the xsl:element element, including 
any default namespace declaration."

So it seems to me we should be adding a namespace node for the default 
namespace.  Can you please open a Jira issue so we can track this?

Dave
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic