├── .gitignore ├── README.md └── csv-to-xml_v3.xsl /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Package Files # 4 | *.jar 5 | *.war 6 | *.ear 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | csv-tools 2 | ========= 3 | 4 | Tools for working with CSV files. 5 | 6 | At the moment just csv-to-xml_v3.xsl which is an XSLT 2.0 Stylesheet for transforming CSV files to XML. 7 | 8 | How to use 9 | ========== 10 | You need to supply the $pathToCSV parameter to the transformation to 11 | instruct it on where to find your CSV file when you run the transform. 12 | To run the Transform you must set 'main' as the initial template. 13 | 14 | 15 | Example using Saxon: 16 | 17 | 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 18 | 19 | The above transforms the file /tmp/a.csv to the file /tmp/a.xml 20 | -------------------------------------------------------------------------------- /csv-to-xml_v3.xsl: -------------------------------------------------------------------------------- 1 | 2 | 30 | 31 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | Cannot locate : 75 | 76 | 77 | 78 | 79 | 80 | 81 | --------------------------------------------------------------------------------