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=6404>. 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=6404 schemaLocation - specification of reference to local file is dereferenced incorrectly Summary: schemaLocation - specification of reference to local file is dereferenced incorrectly Product: Xerces-C++ Version: 1.6.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Given the following attribute in the top element of a document: xsi:schemaLocation="http://notarealurl.com/sourcedata/2002_01_31 file:gensrcschema.xsd" the file "gensrcschema.xsd" in the current directory of the local file system should be found. At least, this is the case for every example and other parser that I have seen to this point. Using the Sax2Count sample (and I'm sure the others as well, I simply haven't tried them) the following error is given: Warning at file , line 0, char 0 Message: An exception occured! Type:RuntimeException, Message:Warning: The primary document entity could not be opened. Id=D:\XML\file:gensrcschema.xsd A similar situation exists for an absolute path like file:D:\XML\gensrcschema.xsd" It appears that the Xerces parser defaults to the local file system when "http://" is not used, and there is probably nothing wrong with that. I'm not certain if the schema location standard explicitly addresses "file:", however, I believe Xerces should *also* detect and remove a prefix of "file:" for consistency with other parsers and with dozens of existing examples in tutorials and such. Thanks, John Atchley --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
