zoterotei2scenari.ant 1.81 KB
Newer Older
Stephane Crozat's avatar
Stephane Crozat committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?xml version="1.0" encoding="UTF-8"?>
<!--
<a href="http://stph.crzt.fr">Stéphane Crozat</a> 
<a href="http://www.gnu.org/licenses/gpl-3.0.txt">License GPL3.0</a>
Aug 31, 2015
-->
<project basedir="." name="zoterotei2scenari">
    <property name="in" location="${basedir}/input"/>
    <property name="out" location="${basedir}/output"/>
    <property name="tmp" location="${basedir}/tmp"/>
    <property name="xsl" location="${basedir}/xsl"/>
    <property name="lib" location="${basedir}/lib"/>
    <property name="log" location="${basedir}/log"/>
    
    
    <delete dir="${tmp}" failonerror="false"/>
    <mkdir dir="${tmp}"/>
    <delete dir="${out}" failonerror="false"/>
    <mkdir dir="${out}"/>
	<mkdir dir="${out}/zotero-optim-1"/>
	<mkdir dir="${out}/zotero-optim-2"/>
	<mkdir dir="${out}/zotero-opale"/>
    <delete dir="${log}" failonerror="false"/>
    <mkdir dir="${log}"/>
    
    <xslt classpath="${lib}/saxon9he.jar" basedir="${in}" includes="*.xml" destdir="${tmp}" extension=".xml" style="${xsl}/zoterotei2scbib.xsl"/>
    
28 29
    <makeurl file="${out}" property="out.url"/>
    
Stephane Crozat's avatar
Stephane Crozat committed
30
    <xslt classpath="${lib}/saxon9he.jar" basedir="${tmp}" destdir="${log}/optim1" extension=".xml" style="${xsl}/scbib2optim.xsl" failonerror="false">
31
        <param name="pOutputUrl" expression="${out.url}/zotero-optim-1"/>
Stephane Crozat's avatar
Stephane Crozat committed
32 33
    </xslt>
	<xslt classpath="${lib}/saxon9he.jar" basedir="${tmp}" destdir="${out}/zotero-optim-2" extension=".section" style="${xsl}/scbib2optim-fragment.xsl" failonerror="false">
34
	    <param name="pOutputUrl" expression="${out.url}/zotero-optim-2/co"/>
Stephane Crozat's avatar
Stephane Crozat committed
35 36 37
	</xslt>
	    	
    <xslt classpath="${lib}/saxon9he.jar" basedir="${tmp}" destdir="${log}/opale" extension=".xml" style="${xsl}/scbib2opale.xsl" failonerror="false"> 
38
        <param name="pOutputUrl" expression="${out.url}/zotero-opale"/>
Stephane Crozat's avatar
Stephane Crozat committed
39 40 41
    </xslt>
    
</project>