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 38106] - xmlvalidate fails when apply to multiple fileset and xml/xsl document with no schemaLocation specified
Date Tue, 03 Jan 2006 14:21:39 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=38106>.
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=38106





------- Additional Comments From a_cogito@yahoo.fr  2006-01-03 15:21 -------
After further investigations, I found a patch but I not sure it's a xerces bug
or functionnality ?!

Somehow the properties set on the XMLReader are lost after the first parse on
the first file of fileset?!

According to the javadoc:
http://xerces.apache.org/xerces-j/apiDocs/org/xml/sax/XMLReader.html#setProperty(java.lang.String,%20java.lang.Object)

"Some property values may be immutable or mutable only in specific contexts,
such as before, during, or after a parse."

This could mean anything and it's contrary !

My solution is to set the properties every time we try do parse().
Since it's just setting values in a hashmap it's not time consuming.

see attached svn-patch.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message