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

Reply via email to