RFR (JAXP): 8168664 [JAXP] XALAN: xsl:element generates namespace prefixes if namespace is given as URI only
christoph.langer at sap.com
Tue Oct 25 13:39:05 UTC 2016
Hi JAXP experts,
please review a fix for a new issue regarding namespace handling in Xalan with xsl:element.
I'm not 100% sure if this is the right way to go or if it would break some correct behavior elsewhere. But I think the current behavior is either not correct or at least it is not required to generate new xsl namespace prefixes if the namespace comes in as URI only to an xsl:element node. The interpretative transformer from the Apache Xalan project will also produce the expected output, different to the compiled XSLTC here.
In the webrev, my changes to XslElement.java are only cosmetical/comments, the behavior does not change. In BasisLibrary.java I also took the opportunity to remove the $Id tag and the unused method "nodeList2IteratorUsingHandleFromNode".
If you think my change is good, I'll also add a test that runs the transformation which can be found in the bug...
Thanks & best regards
More information about the core-libs-dev