<?xml version="1.0" encoding="UTF-8" ?>
<project name="validate" default="testValidate" basedir=".">

  <target name="testValidate">
    <xmlvalidate warn="false">
      <fileset dir="xml" includes="**/about.xml"/>  
       <dtd publicID="-//stevo//DTD doc 1.0//EN"
         location="xml/doc.dtd"/>
    </xmlvalidate>
  </target>
  
  <target name="testDeepValidate">
    <ant dir="xml" 
      antfile="validate.xml"
      target="testValidate"/>
  </target>

  <target name="xmlcatalog">
    <xmlvalidate warn="false">
      <fileset dir="xml" includes="**/about.xml"/>
      <xmlcatalog classpath="xml">
        <dtd publicID="-//stevo//DTD doc 1.0//EN"
             location="doc.dtd"/>
      </xmlcatalog>
    </xmlvalidate>
  </target>

  <target name="xmlcatalognested">
    <xmlvalidate warn="false">
      <fileset dir="xml" includes="**/about.xml"/>
      <xmlcatalog classpath="xml">
	 <entity publicID = "bogusImage"
                 location = "/i/dont/exist.jpg"/>
        <xmlcatalog>
          <dtd publicID="-//stevo//DTD doc 1.0//EN"
               location="doc.dtd"/>
        </xmlcatalog>
      </xmlcatalog>
    </xmlvalidate>
  </target>
  
  <target name="testIso2022Jp">
    <xmlvalidate warn="false" file="xml/iso-2022-jp.xml"/>
  </target>

  <target name="testUtf8">
    <xmlvalidate warn="false" file="xml/utf-8.xml"/>
  </target>

</project>
