Saxon in Java: XSLT for CSV to XML
问题 Mostly continued from this question: XSLT: CSV (or Flat File, or Plain Text) to XML So, I have an XSLT from here: http://andrewjwelch.com/code/xslt/csv/csv-to-xml_v2.html And it converts a CSV file to an XML document. It does this when used with the following command on the command line: java -jar saxon9he.jar -xsl:csv-to-xml.csv -it:main -o:output.xml So now the question becomes: How do I do I do this in my Java code? Right now I have code that looks like this: TransformerFactory