1 <?xml version="1.0" encoding="UTF-8"?>
3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:html="http://www.w3.org/1999/xhtml"
6 xmlns:xlink="http://www.w3.org/1999/xlink"
7 xmlns:m="http://www.w3.org/1998/Math/MathML"
8 xmlns:box="http://helm.cs.unibo.it/2003/BoxML"
11 <xsl:template match="/">
25 <th>Inner avg width</th>
26 <th>Max attributes</th>
27 <th>Total attributes</th>
31 <xsl:apply-templates select="statistics/stats">
32 <xsl:sort order="descending" data-type="number" select="number(elements/total)"/>
33 </xsl:apply-templates>
39 <xsl:template match="stats">
42 <xsl:value-of select="position()"/>
45 <xsl:value-of select="size"/>
48 <xsl:value-of select="number(elements/total)"/>
51 <xsl:value-of select="depth/max"/>
55 <xsl:value-of select="number(text-nodes/total)"/>
58 <xsl:value-of select="number(elements/total) + number(text-nodes/total)"/>
61 <xsl:value-of select="round(depth/leaf-avg)"/>
64 <xsl:value-of select="width/max"/>
67 <xsl:value-of select="round(width/inner-avg)"/>
70 <xsl:value-of select="attributes/max"/>
73 <xsl:value-of select="attributes/total"/>
77 <xsl:value-of select="@for"/>