Commit 10787aa8 authored by Raphaël's avatar Raphaël

Validation of hdoc1-xhtml schema handled in find_content.xsl

parent 7dc74a45
......@@ -12,6 +12,13 @@
<xsl:template match="h:container">
<project name="hdoc_to_pdf" basedir=".." default="main">
<property name="lib" location="lib"/>
<property name="Schema" location="schemas"/>
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
<classpath>
<pathelement location="${lib}/jing.jar"/>
</classpath>
</taskdef>
<target name="main">
<xsl:apply-templates/>
</target>
......@@ -41,6 +48,15 @@
<echo message="Filename : {$filename}"/>
<echo message="Dirpath : {$dirpath}"/>
<trycatch property="foo" reference="bar">
<try>
<jing file="{$TempDirectory}/{$path}" rngfile="${{Schema}}/xhtml/hdoc1-xhtml.rng"></jing>
</try>
<catch>
<echo>Validation failed</echo>
</catch>
</trycatch>
<copy file="{$BaseDirectory}/css/main.css" tofile="{$dirpath}/main.css"/>
<copy file="{$BaseDirectory}/font/cmunrm.ttf" tofile="{$dirpath}/cmunrm.ttf"/>
<copy file="{$BaseDirectory}/font/cmunrb.ttf" tofile="{$dirpath}/cmunrb.ttf"/>
......
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