<module>
  <depends module="util"/>
  <depends module="resolver"/>
  <depends module="validate"/>
  <depends module="rng-validate"/>
  <depends lib="xalan"/>
  <depends lib="saxon"/>
  <depends lib="saxon9"/>
  <test name="old-saxon" in="mod/schematron/test/schematrontest.xml"
	type="validate" schema="test/schematrontest.nrl"
	lib="saxon"/>
  <test name="new-saxon" in="mod/schematron/test/schematrontest.xml"
	type="validate" schema="test/schematrontest.nrl"
	lib="saxon9"/>
  <test name="xalan" in="mod/schematron/test/schematrontest.xml"
	type="validate" schema="test/schematrontest.nrl"
	lib="xalan"/>
  <test name="jaxp" in="mod/schematron/test/schematrontest.xml"
	type="validate" schema="test/schematrontest.nrl"/>
  <ant rescompile="mod.schematron.compile-res">
    <target name="mod.schematron.compile-res">
      <property name="mod.schematron.respackage"
		  value="com/thaiopensource/validate/schematron/resources"/>
      <property name="mod.schematron.resdir"
		  value="${build.dir}/mod/schematron/classes/main/${mod.schematron.respackage}"/>
      <mkdir dir="${mod.schematron.resdir}"/>
      <xslt style="mod/schematron/lib/xsltc-fixup.xsl"
	    in="mod/schematron/src/main/${mod.schematron.respackage}/schematron.xsl"
	    out="${mod.schematron.resdir}/schematron-xsltc.xsl">
	      <factory name="com.icl.saxon.TransformerFactoryImpl"/>
      </xslt>
      <xslt style="mod/schematron/lib/xsltc-fixup.xsl"
      in="mod/schematron/src/main/${mod.schematron.respackage}/iso-schematron.xsl"
      out="${mod.schematron.resdir}/iso-schematron-xsltc.xsl">
        <factory name="com.icl.saxon.TransformerFactoryImpl"/>
      </xslt>
    </target>
  </ant>
  <compile/>
  <service type="com.thaiopensource.validate.SchemaReaderFactory">
    <provider classname="com.thaiopensource.validate.schematron.NewSaxonSchemaReaderFactory"/>
    <provider classname="com.thaiopensource.validate.schematron.OldSaxonSchemaReaderFactory"/>
    <provider classname="com.thaiopensource.validate.schematron.XalanSchemaReaderFactory"/>
    <provider classname="com.thaiopensource.validate.schematron.SchematronSchemaReaderFactory"/>
  </service>
</module>
