title: xslt concat variable and string
body: <p>I'm looking for a simpler way to concatenate a variable and a string value. Currently I have the following:</p>
  
  <pre><code>&lt;xsl:for-each select="$var_asset_name"&gt;
      &lt;xsl:attribute name="Asset_Name" select="fn:concat(fn:string(.), '_title')"/&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>with $var_asset_name defined further up. This works, but I'm wondering if there is a simpler way to achieve the same result. I have tried </p>
  
  <pre><code>&lt;xsl:attribute name="Asset_Name" select="fn:concat($var_asset_name, '_title')"/&gt;
  </code></pre>
  
  <p>but it did not work (Error: The supplied sequence ('2' item(s)) has the wrong occurrence to match the sequence type xs:anyAtomicType ('zero or one'))</p>
  
  <p>Thanks in advance. </p>