Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Convert CSV To html via XSLT [Thread Next] Re: Convert CSV To html via XSLTTo: NULL Date: 6/1/2007 11:28:00 PM Andrew Welch recently posted the XSLT solution of exactly this problem: http://ajwelch.blogspot.com/2007/02/csv-to-xml-converter-in-xslt-20.html Cheers, Dimitre Novatchev "Scott Sauyet" <Scott.Sauyet@g...> wrote in message news:1180451407.142576.59440@g...... > On May 29, 9:50 am, Johannes Koch <k...@w3development.de> wrote: >> Scott Sauyet schrieb: >>> But XSLT will only work on XML documents. It won't even work on older >>> HTML that doesn't conform to XML standards. >> >> The javax.xml.transform.Transformer has a method >> transform(Source xmlSource, Result outputTarget) > > The OP asked, though, > > Just wondering if anyone out there knows if it is possible to > convert a CSV to xml using XSLT? [ ... ] I don't want to have > to use some external program or script to parse the csv first > if possible > > Java is my main coding language, and I do a lot of transforms in it. > But the question was really about XSLT and its capabilities. Although > David Carlisle pointed out that there are techniques that could be > used to import the CSV as text and parse that with some well-written > templates and RegExes, I still believe the best answer to the question > is that XSLT needs XML for input. > > -- Scott > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
