DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29234>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29234

xsl:output encoding not always fully initialized when using XSLTC

           Summary: xsl:output encoding not always fully initialized when
                    using XSLTC
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xml.serializer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This is a problem for non-ASCII characters.

When XSLTC creates a serializer (which turns the result-tree into
characters to be written to a file) the encoding value from the
xsl:output encoding attribute is not properly set causing some characters to be 
written out as character references. For example if the encoding is "UTF-8" the 
serilized output might show &#21843; rather than the UTF-8 encoded form.

The fix is for the serializer to properly initialize the encoding.

Internally XSLTC creates a serializer and calls its
setEncoding() method. This is not a public API but it is the way XSLTC does it. 
This method sets the encoding value in the serializer (m_encoding) but not a 
helper field (ToStream.m_maxCharacter).

Internally the class ToStream needs to have a setEncoding(String encoding) 
method that makes sure m_maxCharacter is also set.
- Brian Minchau

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to