xsl-list
[Top] [All Lists]

Re: [xsl] csv data to xml

2013-06-25 08:27:57
Thanks for tip with tockenizer , etc and for the link . I will do some tes
with both.
@ 
regarding data, it comes form JMS queue (not as EXCEL)

 
----- Ursprüngliche Message -----
Von: Andrew Welch <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com>
An: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
CC: 
Gesendet: 15:15 Dienstag, 25.Juni 2013
Betreff: Re: [xsl] csv data to xml

Use unparsed-text() to read the csv, then use tokenize() to split it
into lines, iterate over each line outputting a <Segment>, then
tokenize() the $line into $tokens, and use fill-in-the-blanks style to
populate the elements.

Basically this:

http://andrewjwelch.com/code/xslt/csv/csv-to-xml_v2.html


-- 
Andrew Welch
http://andrewjwelch.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>
--~--

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