title: How to use the IMG tag from an XML file structure
body: <pre><code>&lt;root&gt;
      &lt;NewsArticle&gt;
          &lt;artTitle&gt;Track&lt;/artTitle&gt;
          &lt;artThumb&gt;&lt;img alt="ArtThumbOne" src="artOne.png?n=5350" title="ArtThumbOne" align="middle" /&gt;&lt;/artThumb&gt;
          &lt;artBodyImg&gt;&lt;img src="rr.jpg?n=2314" alt="rr" /&gt;&lt;/artBodyImg&gt;
      &lt;/NewsArticle&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>XSL:</p>
  
  <p>
  
    </p>
  
  <pre><code>&lt;xsl:for-each select="/root/NewsArticle"&gt;
  
    &lt;div class="dispArtBody"&gt;
        &lt;img src="{artBodyImg/node()}" alt="{artTitle}" class="floatImgLeft" /&gt;&lt;xsl:copy-of select="artText" /&gt;
    &lt;/div&gt;
  
    &lt;input type="hidden" value="{artTitle}" id="hdnArticleTitle" /&gt;
  &lt;/xsl:for-each&gt; 
  </code></pre>
  
  <p>
  </p>
  
  <p>I see the following in the HTML source:</p>
  
  <pre><code>&lt;img src="" alt="The Comprehensive Breast Center: Quality Care on the Fast Track" class="floatImgLeft" /&gt;
  </code></pre>
  
  <p>How do I resolve it.</p>