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

Re: Looping over a CSV in XSL

Subject: Re: Looping over a CSV in XSL
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Mon, 19 Nov 2001 15:17:18 -0000
csv 2 xml
----- Original Message -----
From: "Khan, Amir" <amkhan@xxxxxxxxxx>
> I currently use the contains function and treat the list as a BIG string
but
> this is very crude and not for problems e.g.
>
> List = "Fredrick, Aaron, john, peter"
> I want to do a test in XSL e.g. if(inCSV(@forname))
>
> Where if @forename = "F" the match would fail (it currently doesn't as F
is
> a subset of Fredrick) ;-(

your best best are

a) make xml instead of csv externally, if possible
b) use node-set extension, this is not part of XSLT but a common extension
found in most XSLT processors

http://www.idev.cz/DataConvert/csv2xml_en.html
here is a tool that does simple csv 2 xml conversion, i am sure that ther
are others out there.

cheers, jim fuller


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.