Commit b9cc3bae authored by Jean Vintache's avatar Jean Vintache

fix ant : namespace in container.xml

parent e656b4d0
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?$gt;
<project basedir="." name="myantce" default="main"> <project basedir="." name="myantce" default="main"$gt;
<property file="build.properties"/> <property file="build.properties"/$gt;
<target name="start"> <target name="start"$gt;
<delete dir="${tmp}" failonerror="false"/> <delete dir="${tmp}" failonerror="false"/$gt;
<mkdir dir="${tmp}"/> <mkdir dir="${tmp}"/$gt;
<delete dir="${out}" failonerror="false"/> <delete dir="${out}" failonerror="false"/$gt;
<mkdir dir="${out}"/> <mkdir dir="${out}"/$gt;
<delete dir="${log}" failonerror="false"/> <delete dir="${log}" failonerror="false"/$gt;
<mkdir dir="${log}"/> <mkdir dir="${log}"/$gt;
</target> </target$gt;
<target name="clean-tmp"> <target name="clean-tmp"$gt;
<delete dir="${tmp}" failonerror="false"/> <delete dir="${tmp}" failonerror="false"/$gt;
<mkdir dir="${tmp}"/> <mkdir dir="${tmp}"/$gt;
</target> </target$gt;
<!-- Apply Xslt --> <!-- Apply Xslt --$gt;
<target name="apply-xslt"> <target name="apply-xslt"$gt;
<xslt classpath="lib\saxon9he.jar" in="${xsl}/html2xhtml.xsl" out="${tmp}/tmpPad.xhtml" style="${xsl}/html2xhtml.xsl" /> <xslt classpath="lib\saxon9he.jar" in="${xsl}/html2xhtml.xsl" out="${tmp}/tmpPad.xhtml" style="${xsl}/html2xhtml.xsl" /$gt;
<xslt in="${tmp}/tmpPad.xhtml" out="${tmp}/tozip/content.xml" style="${xsl}/xhtml2hdoc.xsl" /> <xslt in="${tmp}/tmpPad.xhtml" out="${tmp}/tozip/content.xml" style="${xsl}/xhtml2hdoc.xsl" /$gt;
</target> </target$gt;
<!-- Builds Hdoc structure --> <!-- Builds Hdoc structure --$gt;
<target name="construct_hdoc"> <target name="construct_hdoc"$gt;
<mkdir dir="${tmp}/tozip/" /> <mkdir dir="${tmp}/tozip/" /$gt;
<mkdir dir="${tmp}/tozip/META-INF" /> <mkdir dir="${tmp}/tozip/META-INF" /$gt;
<!-- container --> <!-- container --$gt;
<touch file="${tmp}/tozip/META-INF/container.xml" /> <touch file="${tmp}/tozip/META-INF/container.xml" /$gt;
<echoxml file="${tmp}/tozip/META-INF/container.xml"> <echo file="${tmp}/tozip/META-INF/container.xml"$gt;
<container version="1.0"> $lt;container version="1.0"$gt;
<rootfiles> $lt;rootfiles$gt;
<rootfile full-path="${rootfilename}" media-type="text/xml" /> $lt;rootfile full-path="${rootfilename}" media-type="text/xml" /$gt;
</rootfiles> $lt;/rootfiles$gt;
</container> $lt;/container$gt;
</echoxml> </echoxml$gt;
<!-- mimetype --> <!-- mimetype --$gt;
<touch file="${tmp}/mimetype" /> <touch file="${tmp}/mimetype" /$gt;
<echo message="application/x-hdoc+zip" file="${tmp}/tozip/mimetype" /> <echo message="application/x-hdoc+zip" file="${tmp}/tozip/mimetype" /$gt;
</target> </target$gt;
<target name="jing-hdoc"> <target name="jing-hdoc"$gt;
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"> <taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"$gt;
<classpath> <classpath$gt;
<pathelement location="lib/jing.jar"/> <pathelement location="lib/jing.jar"/$gt;
</classpath> </classpath$gt;
</taskdef> </taskdef$gt;
<jing file="${tmp}/tozip/content.xml" rngfile="schema/xhtml/hdoc1-xhtml.rng"></jing> <jing file="${tmp}/tozip/content.xml" rngfile="schema/xhtml/hdoc1-xhtml.rng"$gt;</jing$gt;
<echo>content.xml respecte le schema hdoc1-xhtml.rng</echo> <echo$gt;content.xml respecte le schema hdoc1-xhtml.rng</echo$gt;
</target> </target$gt;
<!-- Zip Hdoc container --> <!-- Zip Hdoc container --$gt;
<target name="zip"> <target name="zip"$gt;
<zip basedir="${tmp}/tozip/" destfile="${out}/output.hdoc" /> <zip basedir="${tmp}/tozip/" destfile="${out}/output.hdoc" /$gt;
</target> </target$gt;
<target name="main" depends="start,apply-xslt,construct_hdoc,jing-hdoc,zip"> <target name="main" depends="start,apply-xslt,construct_hdoc,jing-hdoc,zip"$gt;
</target> </target$gt;
</project> </project$gt;
\ No newline at end of file \ No newline at end of file
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