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

Xalan does not process xsl:output cdata-section-elements correctly

           Summary: Xalan does not process xsl:output cdata-section-elements
                    correctly
           Product: XalanJ2
           Version: 2.3
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.processor
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Xalan does not treat the xsl:output cdata-section-elements correctly because 
the same attribute value handler is use for attributes like use-attribute-sets.

The XLST specification, section 16, states that:

"The cdata-section-elements attribute contains a whitespace-separated list of 
QNames. Each QName is expanded into an expanded-name using the namespace 
declarations in effect on the xsl:output element in which the QName occurs; if 
there is a default namespace, it is used for QNames that do not have a prefix. "

Note that this is **different** than the treatment of QNames for use-attribute-
sets and others as described in 2.4 in the XSLT spec:

"The default namespace is not used for unprefixed names."

So, in order to fix this, two classes need to change:

1) XSLTSchema needs to map the cdata-section-elements to a different attribute 
handler that use-attribute-sets or other attributes whose datatype is 
(correctly) T_QNAMES.
2) XSLTAttributeDef needs a handler that will resolve the non-prefixed elements 
to the default namespace.

I will attach patched versions of the files to this report.

Reply via email to