Subject: RE: Converting CSV file to XML file Using XSLT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 21 Jul 2005 17:29:49 +0100
|
In XSLT 2.0 you can:
* use unparsed-text() to read the non-XML text file
* use tokenize() to split it into lines
* use xsl:analyze-string to parse each line and generate XML output.
For an example that tackles a rather more complex problem, but includes all
the techniques needed to solve this one, see
http://www.idealliance.org/proceedings/xml04/papers/111/mhk-paper.html
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Lakshmi narayana [mailto:lchintala@xxxxxxxxxxxx]
> Sent: 21 July 2005 11:23
> To: XSL (E-mail)
> Subject: Converting CSV file to XML file Using XSLT
>
>
> Hi List,
>
> Is it possible to convet a file which is in CSV format to XML
> file using
> XSLT.
> If possible, can any one give me the example in XSLT to
> convert CSV file to
> XML.
>
> Thanks,
> Laxmi Narayana
|