Re: [xsl] reading a .xsv file in xslt

Subject: Re: [xsl] reading a .xsv file in xslt
From: Justin Johansson <procode@xxxxxxxxxxx>
Date: Wed, 03 Feb 2010 07:22:10 +1030
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