[
http://issues.apache.org/jira/browse/XALANJ-1974?page=comments#action_63409 ]
Brian Minchau commented on XALANJ-1974:
---------------------------------------
Ari, I ran the testcase provided.
Here is a hex dump of what I get for transformed.html
----------------------------------------------------------------------
0000: 3C74 6578 7461 7265 613E 3C2F 7465 7874 *<textarea></text*
0010: 6172 6561 3E0D 0A *area>.. *
Here is a dump of the the input file transform.xml
----------------------------------------------------------------------
0000: 3C74 6578 7461 7265 613E 3C2F 7465 7874 *<textarea></text*
0010: 6172 6561 3E *area> *
The only difference that I got was an additional \r\n after the closing </text>
tag. However the testcase has this in the stylesheet:
<xsl:out ... indent="yes" ... />
I checked the code, and the indentation attribute is allowing Xalan to add
whitespace to pretty things up, and it decided that ending the document with a
newline sequence at the end of the document was a good idea.
The output from Xalan always has absolutely nothing between <textarea> and
</textarea>, so I'm not sure which extra \r or \n that you (Ari) mean, that is
being produced
I don't see a bug here.
> Doubles newline character
> -------------------------
>
> Key: XALANJ-1974
> URL: http://issues.apache.org/jira/browse/XALANJ-1974
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Versions: 2.6
> Environment: Windows Xp Professional O.S., Jrun 4, netBeans 3.6, sql server,
> jdk 1.4.2_03
> Reporter: vaibhav kakadia
> Assignee: Brian Minchau
> Priority: Critical
> Attachments: UtilityStylesheetTester.java, paragraph.xsl,
> saxontransformed.html, transform.xml, transformed.html
>
> Hi,
> It seems to be a strage problem. I put a text like
> 1
> 2
> and saves data. When I come back it is
> 1
> 2
> I again saved data and came back it is
> 1
> 2
> It seems that it is unable to parse #xd;#xa; (CR-LF) into #xa; (LF). So it
> increases newline character everytime. I don't know why this problem arises
> but when I was using older version of Xalan set it was 2.2.0 this was not
> taking place.
> Please do the needful.
> Vaibhav
--
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]