title: How to use an XSL variable for a div's id value
body: <p>I thought the following mark up would work:</p>
  
  <pre><code>&lt;div id = '&lt;xsl:value-of select="$TIMEDISPLAY"/&gt;'&gt; &lt;/div&gt;
  </code></pre>
  
  <p>I get a bunch of XML documents from an external system. One of the tags contains a timestamp using a certain datetime format. I need to transform the XML to HTML pages that will then be loaded into iframes. I have a javascript function to transform that datetime format to a readable display.</p>
  
  <p>So I though to use XSL to generate each HTML file with its <code>&lt;script&gt;</code> section that would locate the id of the div and inject the date display format. For that each HTML file needs to have that div with its own id.</p>