Transform csv to XML

Here should go questions about transforming XML with XSLT and FOP.
Posts: 1
Joined: Tue Jul 26, 2005 10:36 pm
Location: Eau Claire, WI

Transform csv to XML

Post by smdistefano » Tue Jul 26, 2005 10:47 pm

I am new to this and have a question. I know I can use the import functionality to convert a csv file to XML. What I want to know is can I get the xslt generated for that import and use it again later outside the IDE or will I have to create it myself? Is there a way to create this transform without doing it by hand?

I need to do 2 things. First, I have a csv input file which has a few hundred records in csv format. I want to transform it into an xml file which duplicates the csv file.

Second, I need to generate a xml doc for each record/row in the csv file.

Any direction would be appreciated.


Site Admin
Posts: 2100
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Wed Jul 27, 2005 10:35 am

Hi Sal,

There is a sample stylesheet I posted some time ago that converts tab delimited files to XML, you can use that with a couple of changes outside of oXygen. Note that you need an XSLT 2.0 processor like Saxon 8.4 for instance.

Best Regards,

Post Reply