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

Prefixed attrib in different namespace from its element bad

           Summary: Prefixed attrib in different namespace from its element
                    bad
           Product: XalanJ2
           Version: 2.2.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


See the attribset40 test, summarized here:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
            xmlns:bdd="http://bdd.test.com";>

<xsl:template match="/">
  <out>
    <bdd:jam>
      <xsl:attribute name="bdd:attr" 
        namespace="http://xyz.com";>jaminben</xsl:attribute>
    </bdd:jam>
  </out>
</xsl:template>

</xsl:stylesheet>
The bug: by attempting to re-use the "bdd" prefix, the namespace of the element
is tied to the same URI as the attribute. We must generate a new prefix for the
attribute, as Xalan-C++ does.

Reply via email to