This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cvs output???



try here

http://www.dpawson.co.uk/xsl/sect2/N1755.html

remember your output should be text

i.e. <xsl:output method="text"/>

essentially u will want to either apply an xsl:for-each or more
appropriately use a template to match data

<test>
<data>1</data>
<data>2</data>
<data>3</data>
<data>4</data>
</test>


<xsl:output method="text"/>

<xsl:template match="test">

<xsl:apply-templates select="data"/>
</xsl:template>

<xsl:template match="data">
<xsl:value-of select="node()"/>,
</xsl:template>


notice the comma

i havent tested this, but something like this should work

cheers, jim fuller


----- Original Message -----
From: "Meltem Kogelbauer" <meltem.kogelbauer@netdecisions.co.uk>
To: <xsl-list@lists.mulberrytech.com>
Sent: Wednesday, February 13, 2002 3:20 PM
Subject: [xsl] cvs output???


>
> Hey All
>
> I am transforming XML with XSL to output HTML. At the same time I need to
> transform the same XML into cvs format. Could some one tell me how to do
> this?
>
> cheers
>
> Meltem
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]