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

RE: xml 2 csv

Subject: RE: xml 2 csv
From: "Jan Weiss" <jweiss@xxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Nov 2001 14:19:09 +0100
xml 2 csv
and how am i able to get an output for each line:
at the moment, all the data appears in one line.

another question:

i am using jakarta-tomcat which sends the data to my browser. now i want
excel to open when i send the csv data. is this possible? with pdf it works
(to open acrobat) without any problem.



 here is my xsl:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:saxon="http://icl.com/saxon"
extension-element-prefixes="saxon">
<xsl:param name="lang">en</xsl:param>
<xsl:output method="text"/>
	<xsl:template match="/">
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="sdmc-article-list">
		<xsl:apply-templates/>
	</xsl:template>
	<xsl:template match="results">
		<xsl:for-each select="row">  <!--these 4 attributes should be in one
line -->
			<xsl:value-of select="@nrl"/>;  <!-- next row in the next one -->
			<xsl:value-of select="@bla"/>;
			<xsl:value-of select="@nth"/>;
			<xsl:value-of select="@klj"/>;
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>











-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael Kay
Sent: Freitag, 16. November 2001 11:38
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  xml 2 csv


> i am transforming xml into three output formats: html, pdf and xml
>
> now i would like to know, if it is also possible to transform
> xml into csv
> files
> so i can view it with microsoft excel in my browser??
> if it is, what do i need to use and is there a reference
>
Just use <xsl:output method="text"/>, and be very careful about controlling
the output of whitespace.

Mike Kay


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


 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.