xsl-list
[Top] [All Lists]

Re: [xsl] Output to a file...and line feeds...

2007-07-23 09:30:59
On 7/23/07, Naschke, Pete <NaschkePS(_at_)pella(_dot_)com> 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

--~------------------------------------------------------------------
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>
--~--