]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/papers/use_case/stats/mkhtml.xsl
ocaml 3.09 transition
[helm.git] / helm / papers / use_case / stats / mkhtml.xsl
index a5c163a126a96e88da03ef792d97bd8daea63a99..a61576aecfa3cca7d248d9549faccaf00f59d8e9 100644 (file)
         <tr>
          <th>N</th>
          <th>Size (bytes)</th>
-         <th>Nodes</th>
-         <th>Inner nodes/Leaf elements/Text nodes</th>
-         <th>Depth (max/leaf avg)</th>
-         <th>Width (max/inner avg)</th>
-         <th>Attributes (max/total)</th>
+         <th>Elements</th>
+         <th>Max depth</th>
+         <!--
+         <th>Text nodes</th>
+         <th>Total nodes</th>
+         <th>Leaf avg</th>
+         <th>Max width</th>
+         <th>Inner avg width</th>
+         <th>Max attributes</th>
+         <th>Total attributes</th>
+         -->
          <th>Object</th>
        </tr>
         <xsl:apply-templates select="statistics/stats">
-         <xsl:sort order="descending" data-type="number" select="number(elements/total) + number(text-nodes/total)"/>
+         <xsl:sort order="descending" data-type="number" select="number(elements/total)"/>
        </xsl:apply-templates>
       </table>
     </body>
       <xsl:value-of select="size"/>
     </td>
     <td align="left">
-      <xsl:value-of select="number(elements/total) + number(text-nodes/total)"/>
+      <xsl:value-of select="number(elements/total)"/>
+    </td>
+    <td align="left">
+      <xsl:value-of select="depth/max"/>
     </td>
+    <!--
     <td align="left">
-      <xsl:value-of select="number(elements/total) - number(elements/leaf)"/>
-      <xsl:text>/</xsl:text>
-      <xsl:value-of select="number(elements/leaf)"/>
-      <xsl:text>/</xsl:text>
       <xsl:value-of select="number(text-nodes/total)"/>
     </td>
     <td align="left">
-      <xsl:value-of select="depth/max"/>
-      <xsl:text>/</xsl:text>
-      <xsl:value-of select="depth/leaf-avg"/>
+      <xsl:value-of select="number(elements/total) + number(text-nodes/total)"/>
+    </td>
+    <td align="left">
+      <xsl:value-of select="round(depth/leaf-avg)"/>
     </td>
     <td align="left">
       <xsl:value-of select="width/max"/>
-      <xsl:text>/</xsl:text>
-      <xsl:value-of select="width/inner-avg"/>
+    </td>
+    <td align="left">
+      <xsl:value-of select="round(width/inner-avg)"/>
     </td>
     <td align="left">
       <xsl:value-of select="attributes/max"/>
-      <xsl:text>/</xsl:text>
+    </td>
+    <td align="left">
       <xsl:value-of select="attributes/total"/>
     </td>
+    -->
     <th align="left">
       <xsl:value-of select="@for"/>
     </th>