title: Concating the result on another variable XQuery
body: <p>I have the following Query: </p>
  
  <pre><code>for $b in //Desarrollador
  let $desc := $b/Programa/Descripcion/text()
  let $ver := $b/Programa/Version/text()
  where $b/@CodigoDes = "D02"
  return &lt;salida&gt;{$desc, $ver}&lt;/salida&gt;
  </code></pre>
  
  <p>An the result is: </p>
  
  <blockquote>
    <p>Gestión Discos DurosImpresora32</p>
  </blockquote>
  
  <p>However, what I was really want is: </p>
  
  <blockquote>
    <p>Gestión Discos 3  DurosImpresora 2</p>
  </blockquote>
  
  <p>I tried to concat: </p>
  
  <pre><code>for $b in //Desarrollador
  let $desc := $b/Programa/Descripcion/text()
  let $ver := $b/Programa/Version/text()
  let $result := concat($desc, $ver)
  where $b/@CodigoDes = "D02"
  return &lt;salida&gt;{$result}&lt;/salida&gt;
  </code></pre>
  
  <p>But It shows me this error: </p>
  
  <pre><code>Item expected, sequence found: (text{"Gestion Discos Duros"}, ...).  
  </code></pre>
  
  <p>How I could do it?</p>