title: Inserting images from XML to XSL document
body: <p>I was wondering if there is any way I can declare an image in the XML file using an element or attribute and then use this image in the XSL file to input it into a table instead of having to create the table in XSL and inputting the images into the table cells one by one. Here is my current XML document(incomplete as I am just testing it out). </p>
  
  <pre><code>&lt;?xml version= "1.0"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="stylesheet4.xsl"?&gt;
      &lt;countries&gt;
          &lt;country&gt; 
              &lt;countryname&gt;United States&lt;/countryname&gt;
              &lt;countryflag&gt;bg_locale.jpg&lt;/countryflag&gt;
          &lt;/country&gt;
  
          &lt;country&gt;
              &lt;countryname&gt;United Kingdom&lt;/countryname&gt;
          &lt;/country&gt;
  
          &lt;country&gt;
              &lt;countryname&gt;Deutschland&lt;/countryname&gt;
          &lt;/country&gt;
          &lt;/countries&gt;
  </code></pre>
  
  <p>Here is the XSL file i created and the method i tried using: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
  &lt;xsl:template match="/countries"&gt;
  &lt;html&gt;
  &lt;body bgcolor="black"&gt;
  
  &lt;div id="container" style="100%"&gt;
  
  &lt;div id="header" style="background-color:black; height:60px"&gt;&lt;/div&gt;
  
  
  &lt;div id="content_container" align="center"&gt;
      &lt;div id="content" align="left" style="background: url('bg_locale.jpg');height:845px;width:848px"&gt;
      Content goes here
      &lt;img src="logo_timber.jpg" align="left"/&gt;&lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;table border="1"&gt;
  
  &lt;tr&gt;
  &lt;xsl:apply-templates/&gt;
  &lt;/tr&gt;
  
  &lt;/table&gt;
  &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="country"&gt;
  &lt;tr&gt;&lt;td&gt;&lt;xsl:value-of select="countryflag"/&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>As you can see I have created a table and want the XSL to get the image from the XML file and then have it so every countryflag image is displayed in the table one by one.</p>