Commit baa699bc authored by Decorde Jeffrey's avatar Decorde Jeffrey

tmp folder error fixed

parent dd0ea0ae
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
> >
<xsl:output method="xml" indent="yes" encoding="UTF-8"/> <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:param name="filename"/> <xsl:param name="filename"/>
<!-- This template matches the root and create a ANT project, the root of any ANT buildfile. --> <!-- This template matches the root and create a ANT project, the root of any ANT buildfile. -->
<xsl:template match="h:html"> <xsl:template match="h:html">
<project name="moveRessourceFiles" basedir="." default="moveRessourceFiles"> <project name="moveRessourceFiles" basedir="." default="moveRessourceFiles">
<property file="global.properties"/> <property file="global.properties"/>
<property name="filename" location="{$filename}"/> <property name="filename2" location="{$filename}"/>
<target name="moveRessourceFiles"> <target name="moveRessourceFiles">
<xsl:apply-templates select="./*"/> <xsl:apply-templates select="./*"/>
</target> </target>
...@@ -32,16 +32,16 @@ ...@@ -32,16 +32,16 @@
<!-- Targeted markups. --> <!-- Targeted markups. -->
<xsl:template match="h:img"> <xsl:template match="h:img">
<copy tofile="${{filename}}/decompressedOpale/res/{./@src}" file="${{filename}}/decompressedHdoc/{./@src}"/> <copy tofile="${{filename2}}/decompressedOpale/res/{./@src}" file="${{filename2}}/decompressedHdoc/{./@src}"/>
</xsl:template> </xsl:template>
<xsl:template match="h:audio"> <xsl:template match="h:audio">
<copy tofile="${{filename}}/decompressedOpale/res/{./@src}" file="${{filename}}/decompressedHdoc/{./@src}"/> <copy tofile="${{filename2}}/decompressedOpale/res/{./@src}" file="${{filename2}}/decompressedHdoc/{./@src}"/>
</xsl:template> </xsl:template>
<xsl:template match="h:video"> <xsl:template match="h:video">
<copy tofile="${{filename}}/decompressedOpale/res/{./@src}" file="${{filename}}/decompressedHdoc/{./@src}"/> <copy tofile="${{filename2}}/decompressedOpale/res/{./@src}" file="${{filename2}}/decompressedHdoc/{./@src}"/>
</xsl:template> </xsl:template>
<xsl:template match="h:object"> <xsl:template match="h:object">
<copy tofile="${{filename}}/decompressedOpale/res/{./@data}" file="${{filename}}/decompressedHdoc/{./@data}"/> <copy tofile="${{filename2}}/decompressedOpale/res/{./@data}" file="${{filename2}}/decompressedHdoc/{./@data}"/>
</xsl:template> </xsl:template>
<!-- These markups are matched in order to minimize "apply-templates" side-effects (i.e. their contents are not relevant for this transformation). --> <!-- These markups are matched in order to minimize "apply-templates" side-effects (i.e. their contents are not relevant for this transformation). -->
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<property name="lib" location="${{basedir}}/lib"/> <property name="lib" location="${{basedir}}/lib"/>
<property name="log" location="${{basedir}}/log"/> <property name="log" location="${{basedir}}/log"/>
<property name="schema" location="${{basedir}}/schema"/> <property name="schema" location="${{basedir}}/schema"/>
<property name="filename" location="{$filename}"/> <property name="filename" location="${$filename}"/>
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"> <taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
<classpath> <classpath>
<pathelement location="../${lib}/jing.jar"/> <pathelement location="../${lib}/jing.jar"/>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
style="${{xsl}}/moveRessourceFiles.xsl" style="${{xsl}}/moveRessourceFiles.xsl"
processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison" processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison"
> >
<param name="filename" expression="${{tmp}}/${{filename}}"/> <param name="filename" expression="${{tmp}}\${{filename}}"/>
</xslt> </xslt>
<chmod file="${{tmp}}/${{filename}}/moveRessourceFiles.xml" perm="777"/> <chmod file="${{tmp}}/${{filename}}/moveRessourceFiles.xml" perm="777"/>
<xslt <xslt
......
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