Subject: Re: [xsl] csv data to xml From: henry human <henry_human@xxxxxxxx> Date: Wed, 26 Jun 2013 15:21:26 +0100 (BST) |
Hi I was not able to run get this xslt sample runing! When I try it with Saxon 9.1.0 and (call it in Stylus Studio) I got the known error:ontent is not allowed in prolog. ? This was my csv file test.csv USA,AA,Comp. 1,U,012345,L987 USA,BB,Comp.2,Z,034567888888,F098 USA,CC,Comp 3,M,034847474747,F098 ----- Urspr|ngliche Message ----- Von: Andrew Welch <andrew.j.welch@xxxxxxxxx> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx CC: Gesendet: 15:15 Dienstag, 25.Juni 2013 Betreff: Re: [xsl] csv data to xml > Use unparsed-text() to read the csv, then use tokenize() to split it > into lines, iterate over each line outputting a <Segment>, then > tokenize() the $line into $tokens, and use fill-in-the-blanks style to > populate the elements. Basically this: http://andrewjwelch.com/code/xslt/csv/csv-to-xml_v2.html -- Andrew Welch http://andrewjwelch.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] csv data to xml, Olivier XILLO | Thread | Re: [xsl] csv data to xml, Michael Kay |
Re: [xsl] csv data to xml, Emmanuel Bégué | Date | Re: [xsl] csv data to xml, Michael Kay |
Month |