title: How to display an image in HTML using XSLT?
body: <p>I've been trying to use XSLT to output data that my XML has. One of the requirements that is set is to have an image file in the XML file:</p>
  
  <pre><code>&lt;room id="001"&gt;
      &lt;capacity&gt;2 Adults&lt;/capacity&gt;
      &lt;room_name&gt;King Double&lt;/room_name&gt;
      &lt;cost_st&gt;$1700&lt;/cost_st&gt;
      &lt;cost_lt&gt;$3400&lt;/cost_lt&gt;
      &lt;loc&gt;Ground Floor&lt;/loc&gt;
      &lt;info&gt;&amp;in2;&lt;/info&gt;
      &lt;feat&gt;&amp;ft2;&lt;/feat&gt;
      &lt;deal&gt;&amp;pk2;&lt;/deal&gt;
      &lt;photo&gt;kingdouble.jpg&lt;/photo&gt;
  &lt;/room&gt;
  </code></pre>
  
  <p>While I can grab the string in between the tags, I can't seem to display the image file. Am I writing something wrong here, or is it an error in the XSLT?</p>
  
  <p>EDIT:
  This is a portion of my XSLT:</p>
  
  <pre><code>    &lt;tr border="2" bgcolor="#ffebcd"&gt;
          &lt;td&gt; &lt;xsl:value-of select="room_name"/&gt; &lt;/td&gt;
          &lt;td&gt; &lt;xsl:value-of select="capacity"/&gt; &lt;/td&gt;
          &lt;td&gt; &lt;xsl:value-of select="info"/&gt; &lt;/td&gt;
          &lt;td&gt; &lt;xsl:value-of select="loc"/&gt; &lt;/td&gt;
          &lt;td&gt; &lt;xsl:value-of select="feat"/&gt; &lt;/td&gt;
          &lt;td&gt; &lt;xsl:value-of select="cost_st"/&gt; &lt;/td&gt;
          &lt;td&gt; &lt;xsl:value-of select="cost_lt"/&gt; &lt;/td&gt;
      &lt;/tr&gt;
  
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>What I'm trying to do is display the image file without specifying the particular image because the XSLT file will be used as a template for two separate XML pages.</p>