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="uri" select="''"/>
13 <xsl:output method="text"/>
15 <xsl:template match="/">
17 <xsl:when test="$uri=''">
18 <xsl:apply-templates select="statistics/stats"/>
21 <xsl:apply-templates select="statistics/stats[@for=$uri]"/>
26 <xsl:template match="stats">
27 <xsl:value-of select="@for"/>
28 <xsl:text> </xsl:text>
29 <xsl:value-of select="size"/>
30 <xsl:text> </xsl:text>
31 <xsl:value-of select="number(elements/total) + number(text-nodes/total)"/>
32 <xsl:text> </xsl:text>
33 <xsl:value-of select="depth/max"/>