Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Convert CSV To html via XSLT

From: "Dimitre Novatchev" <dimitren@---.---.-->
To: 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
> 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent