Dan, Jan Thanks for the responses. My need right now isn't merely to change csv to html. I have extra processsing to do with those csv rows and output to html finally and it looks like yours is a python script, which I'm not too keen to use for this purpose.
On Fri, Mar 7, 2008 at 8:59 AM, Dan Stromberg <[EMAIL PROTECTED]> wrote: > > http://stromberg.dnsalias.org/~dstromberg/to-table.html > > [EMAIL PROTECTED] wrote: > > XSLT needs XML as input - so CSV wouldnt work. > > If you want to use XSLT you need the step of converting csv to xml > before. > > > > Smallest way would use <script>: > > - write html header > > - iterate over the textfile line by line > > -- split the line by "," > > -- write the data line > > - write html footer > > > > Mmh ... maybe AntContrib:for could iterate over textfiles - I dont know. > > > > > > Jan > > > > > > > >> -----Ursprüngliche Nachricht----- > >> Von: Z W [mailto:[EMAIL PROTECTED] > >> Gesendet: Freitag, 7. März 2008 00:17 > >> An: Ant Users List > >> Betreff: csv to html via xslt or xslt2 task ? > >> > >> Hi ppl, > >> > >> I have a few rows of comma delimited csv file. > >> > >> > >> 1204823515990,2091,Cl,200,OK,M,text,true > >> > >> 1204823518623,828,Su,200,OK,M,text,true > >> > >> 1204823519500,66,Se,200,OK,M,text,true > >> > >> 1204823519604,42,Se,OK,M,text,true > >> > >> and I like to transform it into html with xslt or xslt2. Is > >> that possible ? > >> > >> Could someone provide a simple example to manipulate 2 field > >> in a stylesheet > >> ? I'm new to this hence > >> > >> such a question. > >> > >> Thanks > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >