You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/19 18:16:06 UTC

DO NOT REPLY [Bug 14685] New: - XMLProperty should handle relative DTDs

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14685>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14685

XMLProperty should handle relative DTDs

           Summary: XMLProperty should handle relative DTDs
           Product: Ant
           Version: 1.5.1
          Platform: All
               URL: http://jakarta.apache.org/ant/manual/CoreTasks/xmlproper
                    ty.html
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: kmundy@denovis.com


We have an XML file that begins:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE SchedulerConfiguration PUBLIC "-//DeNovis, Inc.//DTD Scheduler 
Configuration//EN" "SchedulerConfiguration.dtd">
...

This works fine, because SchedulerConfiguration.dtd lives in the same 
directory.  However, XMLProperty can't load it.  It gives:
BUILD FAILED
file:c:/devel/RelEng/build.xml:1544: org.xml.sax.SAXParseException: Relative 
URI "SchedulerConfiguration.dtd"; can not be resolved without a document URI.

The fix is to let the parser open the file, rather than creating an 
InputStream.  (Here's the posting that told me what was needed: 
<http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-
8&safe=off&selm=37FA4E38.E7D41C3C%40pacbell.net>.)  It's simple enough, but 
I'll attach a diff.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>