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=8473>. 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=8473 namspace problem with xsl:element Summary: namspace problem with xsl:element Product: XalanJ2 Version: CurrentCVS Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Santiago Pericas-Geertsen discovered the following namspace problem with Xalan. Using the following stylesheet <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="root"> <xsl:variable name="x"><hello/></xsl:variable> <xsl:element name="literalName" namespace="http://literaluri"> <xsl:copy-of select="$x"/> </xsl:element> </xsl:template> </xsl:stylesheet> Xalan outputs the following <?xml version="1.0" encoding="UTF-8"?> <literalName xmlns="http://literaluri"><hello/></literalName> But the correct output would be either <?xml version="1.0" encoding="utf-8"?><literalName xmlns="http://literaluri"><hello xmlns=""/></literalName> or <?xml version="1.0" encoding="UTF-8" ?> <ns0:literalName xmlns:ns0="http://literaluri"><hello/></ns0:literalName>
