Transform csv to XML

Here should go questions about transforming XML with XSLT and FOP.
smdistefano
Posts: 1
Location: Eau Claire, WI

Transform csv to XML

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.

Sal
george
Site Admin
Posts: 2100

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.
http://www.oxygenxml.com/forum/ftopic977.html

Best Regards,
George

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest