forked from TEIC/TEI-Simple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidate.xml
26 lines (20 loc) · 893 Bytes
/
validate.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="utf-8"?>
<project basedir="." default="dist" name="testtei">
<property name="saxon" value="lib/saxon9he.jar"/>
<property name="trang" value="lib/trang.jar"/>
<property name="jing" value="lib/jing.jar"/>
<property name="dir" value="."/>
<path id="classpath">
<pathelement path="${java.class.path}"/>
</path>
<taskdef name="runjing" classpath="${jing}" classname="com.thaiopensource.relaxng.util.JingTask"/>
<target name="dist" depends="validaterng"/>
<target name="validaterng">
<xslt processor="trax" force="yes" style="stripheader.xsl" in="${testfile}" out="temp.xml">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
<echo level="info">Validate ${testfile} against RELAXNG teisimple.rng</echo>
<runjing rngfile="teisimple.rng" file="temp.xml"/>
<delete file="temp.xml"/>
</target>
</project>