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

Re: reading a .xsv file in xslt

Subject: Re: reading a .xsv file in xslt
From: Justin Johansson <procode@xxxxxxxxxxx>
Date: Wed, 03 Feb 2010 07:22:10 +1030
Re:  reading a .xsv file in xslt
a kusa wrote:

Is it possible to read .csv files in xslt and perform some xslt transformations?

Thanks in advance for your help.

You can use the unparsed-text() function in XSLT 2.0 to have an
XSLT stylesheet read in your .csv file as a string as a starting
point.  From there you might want to explore the new regular expression
capabilities in XSLT 2.0 to break the chunk of file text into
separate lines and from there into separate columns to do your
task.  Read up about both unparsed-text() function and
<xsl:analyse-string/> operation.  Also you might find the
FXSL library useful.  It's mentioned quite a bit on this group.

Good luck

Justin Johansson

Current Thread


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.
First Name
Last Name
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.