DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   XML, XSLT and XPATH (http://www.daniweb.com/forums/forum134.html)
-   -   XSLT: Need to concatenate strings in loop and hold them for later use (http://www.daniweb.com/forums/thread167249.html)

sandeepbhutani Jan 9th, 2009 11:11 am
XSLT: Need to concatenate strings in loop and hold them for later use
 
Hi,

I am making some loops using xsl:for-each.

Now I want to concatenate strings of each iteration to the previous iteration results.

And want to keep it in some variable for later use.



e.g.:

for each iteration suppose i get a,b,c. Now I want to put them in a variable as a_b_c.

How can I achieve this?

fpmurphy Jan 12th, 2009 11:59 am
Re: XSLT: Need to concatenate strings in loop and hold them for later use
 
variables in XSLT are immutable. See http://www.dpawson.co.uk/xsl/sect2/N8090.html for more information.


All times are GMT -4. The time now is 1:18 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC