[ 
http://issues.apache.org/jira/browse/XALANJ-2104?page=comments#action_64462 ]
     
Thomas Adamczik commented on XALANJ-2104:
-----------------------------------------

Brian,

I used Internet Explorer to test the transformation result. According to your 
comment, I tried Xerces, and everything was fine.

I apologize for raising this bug report. I was mislead by the fact, that IE 
could display the transformation result, if there are no whitespaces between 
XML declaration and root element. And I obviously didn't check the Xalan source 
code deeply enough. Sorry for that.

Please close this bug report.

> Improper linefeed after XML declaration for EBCDIC-like encoding
> ----------------------------------------------------------------
>
>          Key: XALANJ-2104
>          URL: http://issues.apache.org/jira/browse/XALANJ-2104
>      Project: XalanJ2
>         Type: Bug
>   Components: Serialization
>     Versions: 2.6
>  Environment: WindowsXP, Xalan-J 2.6.0, JSDK 1.4.2_03
>     Reporter: Thomas Adamczik
>     Assignee: Brian Minchau

>
> The XSL-statement
> <xsl:output method="xml" omit-xml-declaration="no" indent="no" 
> encoding="IBM037"/>
> leads to an improper linefeed after the XML declaration in the result 
> document. The problem is apperantly the following:
> In org.apache.xml.serializer.ToStream the linefeed character sequence is 
> retrieved by reading the system property 'line.separator'.
> In org.apache.xml.serializer.ToXMLStream this character sequence is appended 
> to the output stream after the XML declaration with no attention to the set 
> output encoding.
> If the set output encoding differs "strongly" from the default platform 
> encoding, this leads to severy problems (i.e. not well-formed XML files, 
> since the "linefeed" is interpreted as text).
> I assume that the problem of improper linefeeds also arises between the XML 
> elements, if indent="yes" is selected.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to