<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
  xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
  xmlns:rs='urn:schemas-microsoft-com:rowset'
  xmlns:z='#RowsetSchema'
  xmlns:html="http://www.w3.org/TR/REC-html40">

 <xsl:template match="/">
 <html>
 <head>
 <title>Using Stylesheet to convert attribute based XML to HTML</title>
 <style type="text/css">
  .myHSet { font-Family:verdana; font-Size: 9px; color:blue; }
  .myBSet { font-Family:Garamond; font-Size: 8px; }
 </style>
 </head>

 <body>
   <table width="100%" border="1">

    <xsl:for-each select="xml/s:Schema/s:ElementType/s:AttributeType">
      <th class="myHSet">
          <xsl:value-of select="@name" />
      </th>
    </xsl:for-each>

    <xsl:for-each select="xml/rs:data/z:row">
    <tr>
       <xsl:for-each select="@*">
          <td class="myBSet" valign="top">
                <xsl:value-of select="."/>
          </td>
       </xsl:for-each>
    </tr>
   </xsl:for-each>
  </table>
 </body>
 </html>
 </xsl:template>
 </xsl:stylesheet>