Commit f742f407 authored by Sylvain Schmitz's avatar Sylvain Schmitz

automated publication on webpage

parent e6b402ca
......@@ -20,16 +20,6 @@ This buildfile is used to retrieve and parse XPath expressions from various sour
<pathelement path="../target/classes"/>
<pathelement path="../lib/jing.jar"/>
</path>
<!-- apply XSLT stylesheet -->
<property name="xml" value="docbook.xml"/>
<target name="eval">
<xslt style="toto.xsl" in="${xml}" out="${xml}.leash">
<classpath>
<pathelement path="../lib/saxon.jar"/>
</classpath>
</xslt>
</target>
<!-- macro for processing benchmark files -->
<macrodef name="process">
......
......@@ -9,26 +9,26 @@ This buildfile is used to compile the Java sources for the XPath Parser.
<target name="all" depends="compile">
</target>
<property name="lib-dir" value="lib"/>
<property name="lib.dir" value="lib"/>
<target name="jing">
<local name="offline"/>
<available file="${lib-dir}/jing.jar" property="offline"/>
<mkdir unless:set="offline" dir="${lib-dir}"/>
<available file="${lib.dir}/jing.jar" property="offline"/>
<mkdir unless:set="offline" dir="${lib.dir}"/>
<get unless:set="offline"
src="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jing-trang/jing-20091111.zip"
dest="${lib-dir}" usetimestamp="true"/>
<unzip unless:set="offline" src="${lib-dir}/jing-20091111.zip" dest="${lib-dir}"
<unzip unless:set="offline" src="${lib.dir}/jing-20091111.zip" dest="${lib.dir}"
overwrite="no"/>
<copy unless:set="offline" file="${lib-dir}/jing-20091111/bin/jing.jar"
tofile="${lib-dir}/jing.jar"/>
<copy unless:set="offline" file="${lib.dir}/jing-20091111/bin/jing.jar"
tofile="${lib.dir}/jing.jar"/>
</target>
<presetdef name="java_compile">
<javac debug="true" debuglevel="lines,vars,source"
includeantruntime="false">
<classpath>
<pathelement path="${lib-dir}/jing.jar"/>
<pathelement path="${lib.dir}/jing.jar"/>
</classpath>
</javac>
</presetdef>
......
......@@ -3,16 +3,38 @@
xmlns:unless="ant:unless">
<description>Extract data from benchmark results.</description>
<property name="xml" value="xpathmark"/>
<property name="target.dir" value="${user.home}/public_html/chord/"/>
<!-- apply XSLT stylesheet -->
<property name="xml" value="../../benchmark/existdb.xml"/>
<property name="lib.dir" value="../../lib"/>
<target name="all" depends="matrix"/>
<target name="matrix">
<xslt style="matrix.xsl" in="${xml}" out="matrix.json">
<target name="matrix" depends="saxon">
<filter token="benchmark" value="${xml}"/>
<mkdir dir="${target.dir}/${xml}"/>
<xslt style="matrix.xsl"
in="../../benchmark/${xml}.xml"
out="matrix.json">
<classpath>
<pathelement path="../../lib/saxon.jar"/>
<pathelement path="${lib.dir}/saxon9he.jar"/>
</classpath>
</xslt>
<copy file="index.html" todir="${target.dir}/${xml}" filtering="true"/>
<move file="matrix.json" todir="${target.dir}/${xml}"/>
<move file="fragments.csv" todir="${target.dir}/${xml}"/>
</target>
<target name="saxon">
<local name="offline"/>
<available file="${lib.dir}/saxon9he.jar" property="offline"/>
<mkdir unless:set="offline" dir="${lib.dir}"/>
<get unless:set="offline"
src="https://downloads.sourceforge.net/project/saxon/Saxon-HE/9.7/SaxonHE9-7-0-14J.zip?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fsaxon%2Ffiles%2FSaxon-HE%2F9.7%2F&amp;ts=1485885576&amp;use_mirror=vorboss"
dest="${lib.dir}" usetimestamp="true"/>
<unzip unless:set="offline" src="${lib.dir}/SaxonHE9-7-0-14J.zip" dest="${lib.dir}"
overwrite="no"/>
</target>
</project>
\ No newline at end of file
......@@ -24,7 +24,7 @@ path.chord {
</style>
<h1>Outflows in XPathMark</h1>
<h1>Outflows in @benchmark@</h1>
<p>Links represent XPath entries belonging to one fragment but not the
other. Thicker links represent larger flows. Links are directed;
......@@ -196,7 +196,7 @@ function ready(error, fragments, matrix) {
groupText.append("textPath")
.attr("xlink:href", function(d, i) { return "#group" + i; })
.text(function(d, i) { return fragments[i].name; });
.text(function(d, i) { return "\u2009"+fragments[i].name; });
// Remove the labels that don't fit. :(
//groupText.filter(function(d, i) { return groupPath[0][i].getTotalLength() / 2 - 16 < this.getComputedTextLength(); }).remove();
......
......@@ -4,7 +4,7 @@
<xsl:output method="text"/>
<xsl:param name="fragments"
select="('xpath-1.0-core.rnc', 'xpath-1.0-downward.rnc', 'xpath-1.0-forward.rnc', 'xpath-1.0-vertical.rnc', 'xpath-1.0-data.rnc', 'xpath-1.0-eval.rnc', 'xpath-1.0.rnc', 'xpath-modal.rnc', 'xpath-hybrid.rnc')"/>
select="('xpath-1.0-core.rnc', 'xpath-1.0-downward.rnc', 'xpath-1.0-forward.rnc', 'xpath-1.0-vertical.rnc', 'xpath-1.0-data.rnc', 'xpath-1.0-eval.rnc', 'xpath-3.0.rnc', 'xpath-modal.rnc', 'xpath-hybrid.rnc')"/>
<xsl:template match="/">
<xsl:variable name="root" select="/"/>
......
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