You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Thomas Adamczik (JIRA)" <xa...@xml.apache.org> on 2005/04/15 14:51:17 UTC
[jira] Created: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
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
[jira] Resolved: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2104?page=all ]
Brian Minchau resolved XALANJ-2104:
-----------------------------------
Resolution: Invalid
Resolving as invalid per Thomas request.
> 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
[jira] Assigned: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ 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
[jira] Updated: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2104?page=all ]
Brian Minchau updated XALANJ-2104:
----------------------------------
fix-priority: fp3
Set to fp3, per the Xalan-J issue meeting on May 3, 2005.
Thomas, when tried on Windows another Xalan-J developer got
a line with a carriage return/ line feed on it (in EBCDIC encoded).
When parsed with Xerces it parsed successfully. Is there really a problem here? Could you please attach a full testcase, sample input XML/XSL, and the output that you get that you think is wrong. Please attach rather than cut/paste into the body of this issue, so that no bytes are modified.
Thanks.
> 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
-
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
[jira] Commented: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
[ 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
[jira] Commented: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
Posted by "Thomas Adamczik (JIRA)" <xa...@xml.apache.org>.
[ 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Closed: (XALANJ-2104) Improper linefeed after XML declaration for EBCDIC-like encoding
Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANJ-2104?page=all ]
Brian Minchau closed XALANJ-2104:
---------------------------------
Closing this issue, per the originators request.
> 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