ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <flo...@mindspring.com>
Subject Re: AW: csv to html via xslt or xslt2 task ?
Date Fri, 07 Mar 2008 17:12:22 GMT
If you are able to use Ant contrib, you may be able to do something with 
the "for" task - and customize some type of output...

Z W wrote:
> 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 <dstromberglists@gmail.com>
> wrote:
>
>   
>> http://stromberg.dnsalias.org/~dstromberg/to-table.html
>>
>> Jan.Materne@rzf.fin-nrw.de 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:mpc8250@gmail.com]
>>>> 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: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>       
>>
>>
>>     
>
>   

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message