Commit 4e88f805 authored by Sylvain Schmitz's avatar Sylvain Schmitz

m

parent 2b54581a
......@@ -16,7 +16,7 @@
</schema>
<schema file="xpath-2.0-core-join.rnc"
name="Core 2.0"
color="#ccebc5">
color="#decbe4">
<bib>
<author>Balder ten Cate</author>
<author>Carsten Lutz</author>
......@@ -67,7 +67,7 @@
</schema>
<schema file="xpath-emso2-full.rnc"
name="EMSO2"
color="#fed9a6">
color="#fbb4ae">
<bib>
<author>Mikołaj Bojańczyk</author>
<author>Anca Muscholl</author>
......@@ -82,7 +82,7 @@
</schema>
<schema file="xpath-non-mixing-basic.rnc"
name="NonMixing"
color="#b3cde3">
color="#fed9a6">
<bib>
<author>Wojciech Czerwinski</author>
<author>Claire David</author>
......
......@@ -46,7 +46,6 @@ path |= element pathExpr {
( element rootExpr { empty }, step* )
}
# ---------------------------------------------------------------------------
# Allow some functions
......
......@@ -4,8 +4,8 @@
<description>Extract data from benchmark results.</description>
<property name="xml" value="xpathmark-full"/>
<property name="target.dir" value="$./public_html/chord/"/>
<property name="xml" value="xpathmark"/>
<property name="target.dir" value="./public_html/chord/"/>
<property name="project.root" value="../.."/>
<property name="bench.dir" value="${project.root}/benchmark"/>
<property name="lib.dir" value="${project.root}/lib"/>
......@@ -35,7 +35,7 @@
<uptodate property="extracted">
<srcfiles dir="${project.root}/xslt/" includes="matrix.xsl"/>
<srcfiles dir="./" includes="index.html"/>
<srcfiles dir="${bench.dir}" includes="${xml}.xml"/>
<srcfiles dir="${bench.dir}" includes="${xml}-full.xml"/>
<mergemapper to="${target.dir}/${xml}/matrix.json"/>
</uptodate>
<target name="matrix" depends="saxon,xtask" unless="extracted">
......@@ -52,7 +52,7 @@
xpath="count(//schema)"
outputproperty="fragments"/>
<!-- get the number of entries -->
<xpath document="${bench.dir}/${xml}.xml"
<xpath document="${bench.dir}/${xml}-xml.xml"
xpath="count(//xpath/ast)"
outputproperty="entries"/><!-- //xpath[ast/descendant::*[local-name() = 'xpathAxis']])" -->
<!-- process index.html -->
......
......@@ -4,7 +4,7 @@ MAX=`grep 'MAX_AST_SIZE =' ../../src/main/java/fr/lsv/xpparser/XPathEntry.java|
for ((i = 1; i < $MAX; ++i))
do
C=`grep "ast size=\"$i\"" ../../benchmark/*-full.xml | wc -l`
C=`grep "ast depth=.* size=\"$i\"" ../../benchmark/*-full.xml | wc -l`
echo "$i $C"
done
......@@ -4,7 +4,7 @@
<xsl:output method="text"/>
<xsl:param name="fragments"
select="document('../relaxng/meta.xml')//schema"/>
select="document('../relaxng/fragments-core-1.0.xml')//schema"/>
<xsl:param name="nexamples" select="15"/>
......@@ -87,6 +87,6 @@
<xsl:text>,</xsl:text>
<xsl:value-of select="$f/@color"/>
<xsl:text>,</xsl:text>
<xsl:value-of select="count($root//xpath[schemas/validation[@schema=$f/@file and @valid='yes'] and ast/descendant::*[local-name() = 'xpathAxis']])"/>
<xsl:value-of select="count($root//xpath[schemas/validation[@schema=$f/@file and @valid='yes']])"/>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment