xsl-list
[Top] [All Lists]

[xsl] RE: Windows-style CRLF in text output

2008-07-04 01:42:28


----------------------------------------
From: steven(_dot_)hentschel(_at_)hotmail(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Windows-style CRLF in text output
Date: Fri, 4 Jul 2008 09:34:57 +0100


I've got an application where the output needs be a text file using 
windows-style line endings i.e CRLF, so I thought if the stylesheet used CRLF 
as the line endings these would appear on the output. However the output has 
carriage returns stripped.

I've found I can restore the CR if I use a character map as below, but does 
anyone know why do I need to do this and will all processors exhibit the same 
behaviour? I'm using Saxon 9.


 

<xsl:character-map name="dos-line-ending">
<xsl:output-character character="
" string="
"/>
</xsl:character-map>

Steven Hentschel

_________________________________________________________________
Welcome to the next generation of Windows Live
http://www.windowslive.co.uk/get-live

_________________________________________________________________
The next generation of Windows Live is here
http://www.windowslive.co.uk/get-live
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] RE: Windows-style CRLF in text output, Steven Hentschel <=