generateContentPath.xml 1.18 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?><project name="getContentFileAndTransformIt" basedir="." default="start" xmlns:c="urn:utc.fr:ics:hdoc:container">
<property file="global.properties"/>
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
<classpath>
<pathelement location="lib/jing.jar"/>
</classpath>
</taskdef>
<target name="start">
<jing file="${tmpdir}/decompressedHdoc/content.xml" rngfile="schema/hdoc1-xhtml.rng"/>
<xslt in="${tmpdir}/decompressedHdoc/content.xml" out="${tmpdir}/moveRessourceFiles.xml" style="moveRessourceFiles.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"/>
<chmod file="${tmpdir}/moveRessourceFiles.xml" perm="777"/>
<xslt in="${tmpdir}/decompressedHdoc/content.xml" out="${tmpdir}/decompressedOpale/main.xml" style="transformation2.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"/>
<chmod file="${tmpdir}/decompressedOpale/main.xml" perm="777"/>
<xslt in="${tmpdir}/decompressedHdoc/content.xml" out="${tmpdir}/convertReferences.xml" style="prepareReferencesConversions.xsl" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"/>
<ant antfile="${tmpdir}/convertReferences.xml"/>
</target>
</project>