ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craeg K Strong <cstr...@arielpartners.com>
Subject [PATCH] for org.apache.tools.ant.taskdefs.optional.XMLValidateTask.java
Date Fri, 11 May 2001 03:19:42 GMT
Hello:

Attached please find a patch for the file 
org.apache.tools.ant.taskdefs.optional.XMLValidateTask.java

This is my first submission to this mailing list, so please let me know 
if I have done anything wrong.

With the newer SAX2-compliant parsers, you have to set the SystemId of 
an XML file to be parsed
or else all URIs encountered within that XML file are interpreted 
relative to the current working directory.
Of course that is not what you want, you want them to be interpreted 
relative to the enclosing
XML file.  You will see this problem if you try to validate an XML file 
that has something like
the following:

<!DOCTYPE Classifications SYSTEM "../dtd/classification.dtd">

You probably won't run into this problem if you use PUBLIC identifiers 
or absolute paths.

Incidentally, there has been lots of traffic on xsl-list over the last 
few months about this, it
is biting everybody...

Regards,

--Craeg

-- 
Craeg K. Strong                               | www.arielpartners.com
Ariel Partners LLC		              | cstrong@arielpartners.com 
85 River Street, Ste. 3A                      | Fax:      (781) 647-9690
Waltham, MA 02453                             | Voice:    (781) 647-2425

Mime
View raw message