Use the tokenize() function in XPath 2.0, or str:tokenize() in the EXSLT
library.
Michael Kay
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
SANWAL, ABHISHEK (HP-Houston)
Sent: 26 January 2004 23:36
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] to access a particular token in a comma
separated string by specifying a numerical value ?
How can I access a particular token in a comma separated
string by specifying a numerical value for the token number using XSL?
Assuming, my xsl:variable or xsl:parameter holds a string
with comma-separated values as shown below:
<xsl:variable name="ValuesString" select="'10,20,30,40,50'"/>
How would I go about finding a way to pick out the value
specified by a count that maps another variable/parameter.
Open to Ideas :)
Thanks,
Abhishek
____________________________________________________________
Abhishek Sanwal
HP - Houston Campus
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list