Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Return a string based on index [Thread Next] Re: Return a string based on indexTo: NULL Date: 1/2/2007 6:23:00 AM "abhimanyu" <abhimanyusirohi@g...> wrote in message news:1167736890.220797.313020@s...... >I need to return a string based on an index. for e.g. I have a string > variable > alphabets = "A,B,C,D,E,F,G,H" > I want to get 'C' by saying something like alphabets[3]. Use the str-split-to-words template/function of FXSL to first tokenize the string, then simply select the n-th element from the result using XPath as usual. Cheers, Dimitre Novatchev | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
