RE: [xsl] MSXML -> XSLT -> and bloody \r\r\n and where do they co me from? a nd what can I do about it!

Subject: RE: [xsl] MSXML -> XSLT -> and bloody \r\r\n and where do they co me from? a nd what can I do about it!
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Mon, 13 Dec 2004 11:26:45 -0600
Hi Thomas,

Using the following should automatically give you '\r\n':

 <xsl:value-of select="IndexValue"/>,<xsl:value-of
select="Action"/><xsl:text>
 </xsl:text>

Note the </xsl:text> being on the next line.

HTH,
<prs/>

-----Original Message-----
From: Thomas Keegan [mailto:thomas.keegan@xxxxxxxxxxxxx] 
Sent: Monday, December 13, 2004 10:58 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: [xsl] MSXML -> XSLT -> and bloody \r\r\n and where do they come
from? a nd what can I do about it!

In my XSLT I want to convert an XML file in to text (csv) but a problem I'm
getting is that when I want to put in a Carriage Return(\r) Line Feed(\n).
No matter what I try I always get \r\r\n which is causing a problem with our
import app.

I've tried all of these but with no luck. With the '& #13;' and '& #10;'
there is no space in the middle


<xsl:output method="text" encoding="UTF-8" version="1.0"/>

<xsl:value-of select="IndexValue"/>,<xsl:value-of
select="Action"/><xsl:text>& #13;& #10;</xsl:text>
 
<xsl:value-of select="IndexValue"/>,<xsl:value-of
select="Action"/><xsl:text>& #13;</xsl:text>
 
<xsl:value-of select="IndexValue"/>,<xsl:value-of
select="Action"/><xsl:text>& #10;</xsl:text>
 
<xsl:value-of select="IndexValue"/>,<xsl:value-of
select="Action"/><xsl:text>
</xsl:text>


**********************************************************************
For more information on MoneyMate please visit our web site at
http://www.moneymate.com

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

Current Thread