xsl-list
[Top] [All Lists]

[xsl] Re: loop through comma seperated values

2010-04-01 10:08:42
Dear All,

I am using XSLT 1.0

On Thu, Apr 1, 2010 at 7:06 PM, Ramesh Kumar 
<cnrameshkumar(_at_)gmail(_dot_)com> wrote:
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




-- 


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>