title: To assign dynamic URL's
body: <p>I am new to XSLT Language, I am trying to write code that assigns dynamic URL's to Photo field in my list. My list contains FirstName, LastName and Photo fields of all employees and Photos are in a folder ("file://folder/subfolder/LastName, FirstName.jpg). Based on FirstName and LastName appropriate photo should be dynamically added to Photo Field.</p>
  
  <p>Code I tried:</p>
  
  <pre><code>&lt;xsl:template match="udt:Photo"&gt;
  &lt;xsl:for-each select="dnnGridItem"&gt;
  &lt;xsl:value-of select="udt:LastName" /&gt;
  &lt;xsl:value-of select="udt:FirstName" /&gt;
  &lt;/xsl:for-each&gt;
  &lt;img border="0" alt="delete"&gt;
    &lt;xsl:attribute name="src"&gt;
      &lt;xsl:text&gt;file://folder/subfolder&lt;/xsl:text&gt;
      &lt;xsl:value-of select="file://foilder/subfoilder/?{LastName}, {FirstName}.jpg" /&gt;
      &lt;xsl:text&gt;.jpg&lt;/xsl:text&gt;
    &lt;/xsl:attribute&gt;
  &lt;/img&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>Can any one help me with XSL code.</p>