ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27382] - ant hangs if xmlproperty can not connect to dtd url
Date Fri, 10 Sep 2004 10:36:36 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27382>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27382

ant hangs if xmlproperty can not connect to dtd url

peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From peterreilly@apache.org  2004-09-10 10:36 -------
DTDs are used for other things than validation, they can contain
default values for attributes, so even if validation is turned off
the xml processer will still need to look at the DTD.

For example: widgets.xml
<?xml version="1.0"?>
<!DOCTYPE widgets PUBLIC "-//Widgets//EN" "widgets.dtd">
<widgets>
  <widget/>
</widgets>

widgets.dtd
<!ELEMENT widgets (widget?)>
<!ELEMENT widget (#PCDATA)>
<!ATTLIST widget type CDATA "foobar">

and build.xml
  <target name="x">
    <xmlproperty file="widgets.xml" collapseAttributes="yes"/>
    <echo>widgets.widget.type is ${widgets.widget.type}</echo>
  </target>
outputs:
x:
     [echo] widgets.widget.type is foobar

The dependency with 27053 is correct, this change will
allow the dtd to located locally, so I will mark this
as fixed.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message