append values to a variable xsl:variable

Here should go questions about transforming XML with XSLT and FOP.
AdZy
Posts: 2
Joined: Thu Oct 08, 2009 1:04 pm

append values to a variable xsl:variable

Post by AdZy »

Hi..

I need to append a value to a variable, and can't find the way how to..

i.e.

Inital value of "fullname": "ABC,"
append "DEF,"
New value of "fullname": "ABC,DEF"


<xsl:variable name="fullname"
select="append to fullname.."/>

Thanks!
AdZy
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: append values to a variable xsl:variable

Post by sorin_ristache »

Hello,

You cannot change the value of a variable in XSLT. You have to create a new variable based on the value of the first variable (fullname).


Regards,
Sorin
AdZy
Posts: 2
Joined: Thu Oct 08, 2009 1:04 pm

Re: append values to a variable xsl:variable

Post by AdZy »

Thats why I could not get it woking :-)

Thank you Sorin!
Post Reply