Rank: Newbie
Joined: 10/8/2009 Posts: 1 Location: Singapore
|
Hi,
I need to append info to a variable, i.e.
1. Initial value of "fullname" : "ABC," 2. Append "XYZ," 3. New value of "fullname" : "ABC,XYZ,"
<xsl:variable name="fullname" select="Append to "fullname"/>
Can do?
Thanks! AdZy
|
Rank: Advanced Member
Joined: 6/10/2007 Posts: 36
|
XSLT and XQuery are declarative languages where you bind a value to a variable only once. Thus "appending" a value to a variable value is not possible. If you describe the input you have and the output you want to create and state whether you use XSLT or XQuery then we can show you how to achieve what you want in that language without needing to reassign to variables.
|