Resolved: (XERCESJ-979) default of the feature "http://xml.org/sax/featur 2004-06-11 - By jira@(protected)
Message:
The following issue has been resolved as INCOMPLETE.
Resolver: Michael Glavassevich Date: Fri, 11 Jun 2004 10:36 AM
The default depends on how've you created the parser. JAXP says the default 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. Glancing at the source code for XMLValidateTask [3] and JAXPUtils [4] a non-namespace aware JAXP SAXParser is being created and used.
As to whether namespace support is required for schema processing and validation, it's not specific to Xerces. W3C XML Schemas are built upon XML namespaces (among other standards).
[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://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant /taskdefs/optional/XMLValidateTask.java?annotate=1.36.2.5 [4] http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/util /JAXPUtils.java?annotate=1.9.2.5 --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/XERCESJ-979
Here is an overview of the issue: --------------------------------------------------------------------- Key: XERCESJ-979 Summary: default of the feature "http://xml.org/sax/features/namespaces" Type: Bug
Status: Resolved Priority: Major Resolution: INCOMPLETE
Project: Xerces2-J Versions: 2.6.2
Assignee: Reporter: Antoine Levy-Lambert
Created: Fri, 11 Jun 2004 6:22 AM Updated: Fri, 11 Jun 2004 10:36 AM Environment: Windows 2000 German, cygwin, JDK 1.4, ant 1.6.1
Description: I have been working on a bug report http://issues.apache.org/bugzilla/show_bug .cgi?id=29187 titled "xmlvalidate schema validation not working". I found out that if the following XML fragment is added to <attribute name= "http://xml.org/sax/features/namespaces" value="true"/> the body of the xmlvalidate tag in the ant project file, then the validation works.
But the documentation of xerces says that the namespaces feature defaults to true.
http://xml.apache.org/xerces-j/features.html
So I suspect one of 3 possibilities :
- documentation bug : the default of the feature is false, - code bug : the intended default for this feature is true, but the code sets it to false or "forgets" to set it explicitly to true - something specific for the xml schema validation implementation present in xerces ???
I will add the feature to one of the examples in the documentation of ant.
Cheers, Antoine
--------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-dev-unsubscribe@(protected) For additional commands, e-mail: xerces-j-dev-help@(protected)
|
|