]> matita.cs.unibo.it Git - helm.git/commitdiff
- split compound fields
authorStefano Zacchiroli <zack@upsilon.cc>
Tue, 9 Nov 2004 14:38:20 +0000 (14:38 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Tue, 9 Nov 2004 14:38:20 +0000 (14:38 +0000)
- rounded to integer floating point values

helm/papers/use_case/stats/mkhtml.xsl

index a5c163a126a96e88da03ef792d97bd8daea63a99..597d15e412ec1ec6ca136945964612b7b889194a 100644 (file)
          <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>Inner nodes</th>
+         <th>Leaf elements</th>
+         <th>Text nodes</th>
+         <th>Max depth</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">
     </td>
     <td align="left">
       <xsl:value-of select="number(elements/total) - number(elements/leaf)"/>
-      <xsl:text>/</xsl:text>
+    </td>
+    <td align="left">
       <xsl:value-of select="number(elements/leaf)"/>
-      <xsl:text>/</xsl:text>
+    </td>
+    <td align="left">
       <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"/>
+    </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"/>
+      <xsl:value-of select="substring(@for,21)"/>
     </th>
   </tr>
 </xsl:template>