IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

How to append info to variable? Options · View
AdZy
Posted: Thursday, October 8, 2009 10:19:56 AM
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
Martin Honnen
Posted: Saturday, October 10, 2009 11:36:35 AM
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.