title: Is there a way to disable validation when using Saxon in the XSLT Ant task?
body: <p>I am running some XSL transforms via Ant's XSLT task. I am using Saxon 9HE as the processing engine. I have a situation where the input XML files all use the same DTD but declare it to be in different places. Some declare it to be in the current directory, some in a folder and others reference a URL. Here is the Ant script:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;project name="PubXML2EHeader" default="transform"&gt;
      &lt;property name="data.dir.input" value="./InputXML"/&gt;
      &lt;property name="data.dir.output" value="./converted-xml"/&gt;
      &lt;property name="xslt.processor.location" value="D:\\saxon9he.jar"/&gt;
      &lt;property name="xslt.processor.factory" value="net.sf.saxon.TransformerFactoryImpl"/&gt;
  
      &lt;path id="saxon9.classpath" location="${xslt.processor.location}"/&gt;
  
      &lt;target name="clean"&gt;
          &lt;delete dir="${data.dir.output}" includes="*.xml" failonerror="no"/&gt;
      &lt;/target&gt;
  
      &lt;target name="transform" depends="clean"&gt;
          &lt;xslt destdir="${data.dir.output}"
                extension=".xml"
                failOnTransformationError="false"
                processor="trax"
                style="Transform.xsl"
                useImplicitFileset="false"
                classpathref="saxon9.classpath"
          &gt;
              &lt;outputproperty name="method" value="xml"/&gt;
              &lt;outputproperty name="indent" value="yes"/&gt;
              &lt;fileset dir="${data.dir.input}" includes="**/*.xml" excludes="Transform.xml"/&gt;
              &lt;factory name="${xslt.processor.factory}"/&gt;
          &lt;/xslt&gt;
      &lt;/target&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>When I run this Ant script I get errors like this: </p>
  
  <blockquote>
    <p>[xslt] : Fatal Error! I/O error reported by XML parser processing
    file:/D:/annurev.biophys.093008.131228.xml:
    <a href="http://www.atypon.com/DTD/nlm-dtd/archivearticle.dtd" rel="nofollow">http://www.atypon.com/DTD/nlm-dtd/archivearticle.dtd</a> Cause:
    java.io.FileNotFoundException:
    <a href="http://www.atypon.com/DTD/nlm-dtd/archivearticle.dtd" rel="nofollow">http://www.atypon.com/DTD/nlm-dtd/archivearticle.dtd</a></p>
  </blockquote>
  
  <p>I think these are caused by the fact that Saxon cannot get to the DTD (which is a actually a firewall issue in this case). I don't think I care about validating the input, which is what I think is happening here, and I would like to skip it. Is there an attribute I can add to the XSLT Ant task to stop Saxon from trying to read in the DTD?</p>