Commit 06443101 authored by Jean Vintache's avatar Jean Vintache
Browse files

fix ant : namespace in container.xml

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