title: XSL: How to concatenate nodes with conditions?
body: <p>I have the following code (eg):</p>
  
  <pre><code>&lt;response&gt;
    &lt;parameter&gt;
      &lt;cottage&gt;
        &lt;cot&gt;
         &lt;res&gt;
          &lt;hab desc="Lakeside"&gt;
            &lt;reg cod="OB" prr="600.84&gt;
              &lt;lwz&gt;TR#2#AB#200.26#0#QB#OK#20120829#20120830#EU#3-0#&lt;/lwz&gt;
              &lt;lwz&gt;TR#2#AB#200.26#0#QB#OK#20120830#20120831#EU#3-0#&lt;/lwz&gt;
              &lt;lwz&gt;TR#2#AB#200.26#0#QB#OK#20120831#20120901#EU#3-0#&lt;/lwz&gt;
  </code></pre>
  
  <p>I need to create a concatenated string that includes the whole of the first 'lwz' line and then the price (200.26, but it can be different in each line) for each corresponding line.</p>
  
  <p>So the output, separating each line with | would be:</p>
  
  <p>TR#2#AB#200.26#0#QB#OK#20120829#20120830#EU#3-0#|200.26|200.26</p>
  
  <p>Thanks</p>