You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "McCollum , Angus" <AM...@grow.net> on 2001/09/07 18:35:34 UTC

Turning off XML validation is Style task

Is there a way to turn off XML validation in a Style task?

In particular I want to process a set of XML documents that use a public
document type. The Style task can find the DTD and produces the error below:

>ant

Buildfile: build.xml

outline:
    [style] Transforming into C:\outline
    [style] Transforming into C:\outline
    [style] Loading stylesheet C:\outline\outline.xsl
    [style] Failed to process T:\Documents\Problems.xml

BUILD FAILED

C:\outline\build.xml:9: javax.xml.transform.TransformerException:
java.io.FileNotFound
Exception: T:\Documents\mathnote.dtd (The system cannot find the file
specified)

Total time: 2 seconds


Re: Turning off XML validation is Style task

Posted by Erik Hatcher <er...@earthlink.net>.
There currently is no way to turn off validation for the <style> task, but
that seems like a reasonable feature request.

Its probably a fairly trivial modification... patches always welcome!  :)

    Erik


----- Original Message -----
From: "McCollum , Angus" <AM...@grow.net>
To: "Ant User (E-mail)" <an...@jakarta.apache.org>
Sent: Friday, September 07, 2001 9:35 AM
Subject: Turning off XML validation is Style task


> Is there a way to turn off XML validation in a Style task?
>
> In particular I want to process a set of XML documents that use a public
> document type. The Style task can find the DTD and produces the error
below:
>
> >ant
>
> Buildfile: build.xml
>
> outline:
>     [style] Transforming into C:\outline
>     [style] Transforming into C:\outline
>     [style] Loading stylesheet C:\outline\outline.xsl
>     [style] Failed to process T:\Documents\Problems.xml
>
> BUILD FAILED
>
> C:\outline\build.xml:9: javax.xml.transform.TransformerException:
> java.io.FileNotFound
> Exception: T:\Documents\mathnote.dtd (The system cannot find the file
> specified)
>
> Total time: 2 seconds
>