You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/05/03 22:31:06 UTC

[jira] Assigned: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding

     [ http://issues.apache.org/jira/browse/XALANJ-2104?page=all ]

Brian Minchau reassigned XALANJ-2104:
-------------------------------------

    Assign To: Brian Minchau

Assigning to Brian M. per the Xalan-J issue meeting on May 3, 2005.

> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org