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=23955>.
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=23955

unique attributes with same qname conflict resolution is incorrect

           Summary: unique attributes with same qname conflict resolution is
                    incorrect
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/">
    <elem xmlns:foo="bar1">
        <elem foo:attr="1">
            <xsl:attribute name="foo:attr" xmlns:foo="bar2"/>
        </elem>
    </elem>
</xsl:template>

</xsl:stylesheet>

With the above stylesheet, the output is:

<?xml version="1.0" encoding="UTF-8"?>
<elem xmlns:foo="bar1"><elem foo:attr="" xmlns:foo="bar2"/></elem>

This is incorrect since
- the attr who's value is "" should belong to the bar2 namespace
- the attr who's value is "1" should belong to the bar1 namespace

Reply via email to