xsl-list
[Top] [All Lists]

[xsl] loop through comma seperated values

2010-04-01 10:07:06
Dear All,

I have XML document with an element having comma seperated values as below
<RowKey>JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC,YTD</RowKey>

I need to loop through the values. I tried to replace the comma","
with "><" and used the variable in For each as below.
<xsl:for-each select="msxsl:node-set($ColHead)">
        <xsl:value-of select="."/>
</xsl:for-each>
Note: $ColHead contains the comma seperated values.


But no luck. Any help ?
-- 


Regards,
Ramesh

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