]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/papers/use_case/stats/serialize_into_text.xsl
* basic infrastructure for collecting statistics
[helm.git] / helm / papers / use_case / stats / serialize_into_text.xsl
diff --git a/helm/papers/use_case/stats/serialize_into_text.xsl b/helm/papers/use_case/stats/serialize_into_text.xsl
new file mode 100644 (file)
index 0000000..97f542f
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+<xsl:output method="text"/>
+
+<xsl:template match="/">
+  <xsl:apply-templates select="//stats"/>
+</xsl:template>
+
+<xsl:template match="stats">
+  <!--<xsl:value-of select="number(elements/total) + number(text-nodes/total)"/>-->
+  <xsl:value-of select="number(elements/total)"/>
+  <xsl:text> </xsl:text>
+  <xsl:value-of select="number(depth/max)"/>
+  <xsl:text>
+</xsl:text>
+</xsl:template>
+
+</xsl:stylesheet>
+