Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 577 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 577 Bytes

csv-tools

Tools for working with CSV files.

At the moment just csv-to-xml_v3.xsl which is an XSLT 2.0 Stylesheet for transforming CSV files to XML.

How to use

You need to supply the $pathToCSV parameter to the transformation to instruct it on where to find your CSV file when you run the transform. To run the Transform you must set 'main' as the initial template.

Example using Saxon:

java -jar saxonhe-9.3.0.4-j.jar pathToCSV=/tmp/a.csv -xsl:csv-to-xml_v3.xsl -it:main -o:/tmp/a.xml

The above transforms the file /tmp/a.csv to the file /tmp/a.xml