<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="no"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />
<xsl:template match="/dati">
 <html>
  <head>
   <title>tabella</title>
   <link rel="stylesheet" type="text/css" href="sorgenti_x_articolo/stile.css" />
  </head>
 <body>
 <table>
  <tr>
    <th></th>
  <xsl:for-each select="dato[1]/descrizione/@etichetta">  
    <th scope="col"><xsl:value-of select="." /></th>
  </xsl:for-each>
  </tr>
  <xsl:for-each select="dato">
  <tr>
   <th scope="row"><xsl:value-of select="@id" /></th>
   <xsl:for-each select="descrizione">
    <td><xsl:value-of select="@valore" /></td>
   </xsl:for-each>
  </tr>
  </xsl:for-each>
 </table>
 </body>
</html>
</xsl:template>
</xsl:stylesheet>
