Talk:CSV2TEI.xsl
Jump to navigation
Jump to search
required input, windows EOL problem
Weird, I can make it run invoking "java -jar saxon8.jar", but not "java net.sf.saxon.Transform", as the software (Saxon 8.9J) itself recommends... Anyway, the invocation in the example looks like it might work for a binary version of saxon, if there ever was one, or for an alias, perhaps. Let me change it to what works, i.e. "java -jar saxon8.jar".
Also, on windows (it looks like the EOL is an issue), the last item of every row gets eaten, unless it is quoted. So, for my test file:
this,is,a,test,really,is This, is a, variation, on a, test "This","is","another","variation.","lastitem"
I receive:
<?xml version="1.0" encoding="UTF-8"?> <table> <row> <cell>this</cell> <cell>is</cell> <cell>a</cell> <cell>test</cell> <cell>really</cell> </row> <row> <cell>This</cell> <cell>is a</cell> <cell>variation</cell> <cell>on a</cell> </row> <row> <cell>This</cell> <cell>is</cell> <cell>another</cell> <cell>variation.</cell> <cell>lastitem</cell> </row> </table>
And if I drop the quotes around "lastitem", it vanishes. Piotr 11:53, 2 October 2007 (BST)