2 Replies Latest reply: Aug 19, 2014 2:05 PM by 2732350 RSS

    How handling with concatenated variables?

    2732350

      Hi, I need a help!

       

      I have a little problem, when I concatenate some variables. I can't remove the comma after the last loaded variable.

       

      XML

       

      <listPeople>

           <people>

                <name>DIVINO CARVALHO DE OLIVEIRA</name>

                <qualification>RG. 111.333 SSP/MT</qualification>

           </people>

           <people>

                <name>ARISTIDES PERALTA MARTINS</name>

                <qualification>222.555 SSP/MS</qualification>

           </people>

      </listPeople>


      And the function


      <?if:xdoxslt:get_variable($_XDOCTX, 'PEOPLE') != ' '?> <?xdoxslt:set_variable($_XDOCTX,’PEOPLE’,concat(xdoxslt:get_variable($_XDOCTX, ‘PEOPLE’),concat(name,‘, ’)))?>

      <?end if?>

       

      Thank you!