xsl-list
[Top] [All Lists]

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

2010-02-02 14:52:47
a kusa wrote:
Hi

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

Thanks in advance for your help.

--~------------------------------------------------------------------
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>
--~--


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




--~------------------------------------------------------------------
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>
--~--