title: xslt value of in an ID or Class element
body: <p>Trying to get value of xml in <code>ID</code> element in a div.. </p>
  
  <pre><code>&lt;xsl:for-each select="tables"&gt;
      &lt;xsl:for-each select="table"&gt;
          &lt;xsl:for-each select="@name"&gt;
              &lt;div id="&lt;xsl:value-of select="."/&gt;"&gt;
  
              &lt;/div&gt;
          &lt;/xsl:for-each&gt;
      &lt;/xsl:for-each&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>I know this is wrong .. need help how to do it properly</p>
  
  <hr>
  
  <p>Input XML</p>
  
  <pre><code>&lt;?xml-stylesheet type="text/xsl" href="ddlms.xslt"?&gt;
  &lt;tables&gt;
  &lt;table name="tbl_AccountLedger"&gt;
   &lt;row&gt;
          &lt;Field&gt;&lt;/Field&gt;
          &lt;ColumnName&gt;ledgerId&lt;/ColumnName&gt;
          &lt;DataType&gt;varchar&lt;/DataType&gt;
          &lt;Prec tbl="krishna"&gt;50&lt;/Prec&gt;
          &lt;Cons&gt;PK&lt;/Cons&gt;
          &lt;Ref&gt;&lt;/Ref&gt;
          &lt;Coded&gt;&lt;/Coded&gt;
          &lt;Def&gt;&lt;/Def&gt;
          &lt;Description&gt;&lt;/Description&gt;
   &lt;/row&gt;
   &lt;/table&gt;
   &lt;/tables&gt;
  </code></pre>