[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

csv output - carriage return help needed

Subject: csv output - carriage return help needed
From: "tp001 tp" <tpass001@xxxxxxxxxxx>
Date: Wed, 17 Jul 2002 13:47:24 -0500
csv carriage return
Hello,

I am using the xalan 2.3 processor.
My xml is
-------------------------------------------
<tableBody>
           <tableRow>
              <cell>CLIENT 001</cell>
              <cell>546.00</cell>
              <cell>MARGIN</cell>
           </tableRow>
           <tableRow>
              <cell>CLIENT 001</cell>
              <cell>PAGE 002</cell>
              <cell>546.00</cell>
           </tableRow>
-------------------------------------------

the relevant portions of the xsl are
{b4 the template decl}
<xsl:output method="text" media-type="text/plain" />
{in the xsl:template}
<xsl:for-each select="tableBody/tableRow/cell">
<pre>
<xsl:value-of select="."/>, </pre>
<xsl:text>&#xA;
</xsl:text>
</xsl:for-each>
-------------------------------------------
the output that i expect is
CLIENT 001,546.00,MARGIN,
CLIENT 001,PAGE 002,546.00,
-------------------------------------------
the actual output that i get is
CLIENT 001,546.00,MARGIN,CLIENT 001,PAGE 002,546.00,
-------------------------------------------
can someone help me out. for some reason the carriage return or the &#xA; is not working. i have searched thro the archives and this is what basically everyone is doing.


also on the side is there any site where all these odd ball xsl codes are catalogued for display.

Thanks.

TP.

_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.