DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5147>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5147 Xalan inserts spurious xmlns attribute in some nodes Summary: Xalan inserts spurious xmlns attribute in some nodes Product: XalanJ2 Version: 2.2.x Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan.transformer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, Xalan inserts a spurious xmlns attribute in some nodes. This doesn't happen with jd.xslt or Saxon. I'm running xalanJ2.2.D13 on Redhat 7.2 with IBM JDK 1.3 on a Pentium. ===== input file testbug.xml ===== <?xml version="1.0" encoding="UTF-8"?> <alpha xmlns="http://namespace111" xmlns:ns222="http://namespace222" > <gamma> some text </gamma> </alpha> ===== input file copyns.global.xml ===== <?xml version="1.0" encoding="UTF-8"?> <!-- Copy xml to xml, with slight mods. --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://namespace111" xmlns:ns111="http://namespace111" xmlns:ns222="http://namespace222" version="1.0" > <xsl:output method="xml" encoding="UTF-8" indent="yes" /> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <!-- Modify gamma nodes and their attributes --> <xsl:template match="ns111:gamma"> <xsl:element name="gggamma"> <xsl:apply-templates select="@*|node()"/> </xsl:element> </xsl:template> </xsl:stylesheet> ====== Output file: Note the extra xmlns in element gggamma ========== <?xml version="1.0" encoding="UTF-8"?> <alpha xmlns="http://namespace111" xmlns:ns222="http://namespace222"> <gggamma xmlns:ns111="http://namespace111"> some text </gggamma> </alpha> ==============================
