title: Concat string value with a separator Xslt 1.0
body: <p>This is my XML:</p>
  
  <pre><code>&lt;LIGHT_INFORMATION_LIST&gt;
      &lt;LIGHT_INFORMATION&gt;
          &lt;LIGHT_CHARACTERISTICS&gt;Al&lt;/LIGHT_CHARACTERISTICS&gt;
          &lt;LIGHT_COLOUR&gt;W-G&lt;/LIGHT_COLOUR&gt;
      &lt;/LIGHT_INFORMATION&gt;
      &lt;LIGHT_INFORMATION&gt;
          &lt;LIGHT_CHARACTERISTICS&gt;Al&lt;/LIGHT_CHARACTERISTICS&gt;
          &lt;LIGHT_COLOUR&gt;W-R&lt;/LIGHT_COLOUR&gt;
      &lt;/LIGHT_INFORMATION&gt;
  &lt;/LIGHT_INFORMATION_LIST&gt;
  </code></pre>
  
  <p>I would concat all element of LIGHT_COLOUR in a variable separate by '-'.</p>
  
  <p>In output I desire:  W-G-W-R   (assigned in a variable).</p>
  
  <p>I created this:</p>
  
  <pre><code>&lt;xsl:value-of select="concat(LIGHT_COLOUR,'-')"/&gt;  --&gt;Output W-G-W-R-
  </code></pre>
  
  <p>Now I would assign to a variable this output.</p>