title: Outputting value of xsl:variable with xsl:value-of problem
body: <p>I think I may have a misunderstanding of <code>&lt;xsl:variable\&gt;</code> and <code>&lt;xsl:value-of\&gt;</code> so perhaps someone can correct me!</p>
  
  <p>I'm attempting to tweak some hardcoded banners to be a bit cleaner so I thought it would be a good idea to create an <code>&lt;xsl:variable&gt;</code> containing the banner link and image code, then use <code>&lt;xml:value-of&gt;</code> at the various places where the banner is needed. For example:</p>
  
  <pre><code>&lt;!-- Global variable in my xslt file. There are a bunch of these... --&gt;
  &lt;xsl:variable name="banner1"&gt;
      &lt;a href="http://www.link.com/" title="Title" target="_blank"&gt;
          &lt;img width="120" height="506" src="/images/banners/image.gif" alt="alt" /&gt;
      &lt;/a&gt;
  &lt;/xsl:variable&gt;
  
  &lt;!-- Then when used: --&gt;
  &lt;xsl:when test="blah'"&gt;
      &lt;xsl:value-of select="$banner1"/&gt;
  &lt;/xsl:when&gt;
  </code></pre>
  
  <p>But this isn't producing the output I expect. The images path etc is valid, but this just spits out nothing at all. Any text added before or after the <code>&lt;a&gt;</code> tag appears correctly, but nothing between the <code>&lt;a&gt;</code> tags Themselves.</p>
  
  <p>What have I misunderstood about <code>&lt;xsl:variable&gt;</code> and how could I do this better (other than doing it "properly" and pulling adverts from a database etc. which I'd prefer...).</p>