xsl-list
[Top] [All Lists]

RE: Converting CSV file to XML file Using XSLT

2005-07-21 09:29:49
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(_at_)osi-tech(_dot_)com] 
Sent: 21 July 2005 11:23
To: XSL (E-mail)
Subject: [xsl] 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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>