title: Text Attribute as value for another element
body: <p>With the XML below, I would like to know how to get the value of text in the case_id node as an attribute for the hidden input tag in the xsl sheet below.
  Is this possible?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="data.xsl"?&gt;
  &lt;NewDataSet&gt;
  &lt;Cases&gt;
  &lt;Case&gt;
  &lt;case_id&gt;30&lt;/case_id&gt;
  ...
  ...
  &lt;/Case&gt;
  &lt;/Cases&gt;
  &lt;/NewDataset&gt;
  &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="/"&gt;
  &lt;input type="hidden" name="case_num" value="?"/&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>