You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2005/04/15 15:02:16 UTC
[jira] Commented: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
[ http://issues.apache.org/jira/browse/XALANJ-2104?page=comments#action_62895 ]
Henry Zongaro commented on XALANJ-2104:
---------------------------------------
This may be the same problem as XALANJ-2016.
> 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
>
> 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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org