You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/10/20 22:47:34 UTC

DO NOT REPLY [Bug 23955] New: - unique attributes with same qname conflict resolution is incorrect

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: xalan-dev@xml.apache.org
        ReportedBy: richcao@ca.ibm.com


<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