[ http://issues.apache.org/jira/browse/XALANJ-2045?page=comments#action_57783 ] Henry Zongaro commented on XALANJ-2045: ---------------------------------------
The behaviour of Xalan-J in the second case you describe is still correct. The exclude-result-prefixes and extension-element-prefixes attributes only suppress namespace nodes for literal result elements. Namespace nodes are not suppressed if they are associated with element nodes that are copied using xsl:copy or xsl:copy-of. See [1,2,3] for more details. [1] http://www.w3.org/TR/xslt#literal-result-element [2] http://www.w3.org/TR/xslt#copying [3] http://www.w3.org/TR/xslt#copy-of > superfluous namespace attribute generated at root element > --------------------------------------------------------- > > Key: XALANJ-2045 > URL: http://issues.apache.org/jira/browse/XALANJ-2045 > Project: XalanJ2 > Type: Bug > Components: Xalan > Versions: 2.6 > Environment: Win XP, Xalan 2.6.0, Xerces 2.6.2, JDK 1.3.1_09 > Reporter: Dirk Feufel > > Since upgrading from Xalan 2.5.2 to 2.6.0 I get an additional namespace > attribute generated at the root element of the output xml: > XSL: > <xsl:stylesheet version='1.1' > xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > xmlns:xalan="http://xml.apache.org/xalan"> > <xsl:output method="xml" version="1.0" encoding="UTF-8" > indent="yes" xalan:indent-amount="4"/> > <xsl:template match="/test"> > <test> <xsl:copy-of select="hello"/> </test> > </xsl:template> > </xsl:stylesheet> > Input: > <?xml version="1.0" encoding="UTF-8"?> > <test> > <hello/> > </test> > Output: > <?xml version="1.0" encoding="UTF-8"?> > <test xmlns:xalan="http://xml.apache.org/xalan"> > <hello>test</hello> > </test> > This behaviour can be avoided by specifying > extension-element-prefixes="xalan" for the XSL, but then I get the same > additional namespace attributes at child elements under certain conditions > (which I have not yet fully analysed). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
