cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject RE: Cocoon to csv not excel
Date Fri, 27 Jun 2003 15:02:58 GMT
On 27 Jun 2003 at 9:55, Tim Bachta wrote:

> So can I use an xsl to create the node?  I have a xsp that creates an
> xml file that I don't want to change.

Yup. Use XSLT to transform your source XML into a CSV file wrapped by a single 
node, then pass it to the text serializer.

Regards, Upayavira

> -----Original Message-----
> From: Upayavira [mailto:uv@upaya.co.uk] 
> Sent: Friday, June 27, 2003 9:32 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: Cocoon to csv not excel
> 
> Using XSLT with the text serializer should do it. Just wrap your CSV
> content with a single node which will be ignored by the text
> serializer:
> 
> <root>
> "1","bill"
> "2","sid"
> "3","sue"
> </root>
> 
> and
> <map:match pattern="xx">
>   <map:generate ...>
>   <map:transform...>
>   <map:serialize type="text"/>
> </map:match>
> 
> Regards, Upayavira
> 
> On 27 Jun 2003 at 9:33, Tim Bachta wrote:
> 
> > Is there a way to create a csv file using cocoon?  I have looked
> > through the developers handbook with no luck.  Thank you.
> > 
> > 
> > 
> > Tim Bachta
> > 
> > 
> > 
> > 
> > 
> > 
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For
> additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For
> additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message