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:param name="size_min" select="500"/>
12 <xsl:param name="size_max" select="10000"/>
13 <xsl:param name="perc" select="0.01"/>
14 <xsl:param name="step" select="500"/>
16 <xsl:template match="/">
19 <xsl:call-template name="find-dep"/>
24 <xsl:template name="find-dep">
25 <xsl:param name="size" select="$size_min"/>
26 <xsl:variable name="range" select="$size * $perc"/>
27 <xsl:if test="$size <= $size_max">
39 <th>Inner avg width</th>
40 <th>Max attributes</th>
41 <th>Total attributes</th>
45 <xsl:apply-templates select="statistics/stats[number(elements/total) >= $size - $range
46 and number(elements/total) <= $size + $range]">
47 <xsl:sort order="ascending" data-type="number" select="number(depth/max)"/>
48 </xsl:apply-templates>
50 <xsl:call-template name="find-dep">
51 <xsl:with-param name="size" select="$size + $step"/>
56 <xsl:template match="stats">
59 <xsl:value-of select="position()"/>
62 <xsl:value-of select="size"/>
65 <xsl:value-of select="number(elements/total)"/>
68 <xsl:value-of select="depth/max"/>
72 <xsl:value-of select="number(text-nodes/total)"/>
75 <xsl:value-of select="number(elements/total) + number(text-nodes/total)"/>
78 <xsl:value-of select="round(depth/leaf-avg)"/>
81 <xsl:value-of select="width/max"/>
84 <xsl:value-of select="round(width/inner-avg)"/>
87 <xsl:value-of select="attributes/max"/>
90 <xsl:value-of select="attributes/total"/>
94 <xsl:value-of select="substring(@for,21)"/>