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 29187] - xmlvalidate schema validation not working
Date Fri, 11 Jun 2004 22:10:14 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=29187>.
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=29187

xmlvalidate schema validation not working





------- Additional Comments From antoine@apache.org  2004-06-11 22:10 -------
Michael Glavassevich writes [3] :

> Glancing at the source code for XMLValidateTask and JAXPUtils a non-namespace
> aware JAXP SAXParser is being created and used.

> JAXP says the default [for the namespaces feature] is false [1]. 
> SAX says the default is true [2]. 
> There isn't a bug here. It's just a conflict between the two specs,
> which often burns users who assume that SAX and JAXP are consistent.

[1]
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParserFactory.html#setNamespaceAware(boolean)
[2] http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html 
[3] http://issues.apache.org/jira/browse/XERCESJ-979

I will add to the documentation of the xmlvalidate task a sentence like :
warning - the namespaces feature defaults to false if you do not specify your
own parser class.

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


Mime
View raw message