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

Re: Output to a file...and line feeds...

Subject: Re: Output to a file...and line feeds...
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 23 Jul 2007 17:30:42 +0100
Re:  Output to a file...and line feeds...
On 7/23/07, Naschke, Pete <NaschkePS@xxxxxxxxx> wrote:
1. How is the best way to create a new text file (or Excel CSV file)
using an XSLT file?

If you mean in addition to the result of the transform then it's like DC says, but if you mean _as_ the result of the transform then use <xsl:output method="text"/>

2. how is the best way to create a line-feed? (After printing my comma
separated values, I need to "drop down" a line for the next data group.)

If you are creating it using a function (such as concat()) within an attribute then I use &#xa; (which is &#10; :) otherwise use <xsl:text>&#xa;</xsl:text> I would advise against doing: <xsl:text> </xsl:text> ..because it becomes a maintenance issue when you can see how much white space you're adding to the result.


-- http://andrewjwelch.com

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.