[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Converting CSV file to XML file Using XSLT

Subject: RE: Converting CSV file to XML file Using XSLT
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 21 Jul 2005 17:29:49 +0100
xslt csv file
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.