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=11164>. 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=11164 Schema validation namespace detection error. Summary: Schema validation namespace detection error. Product: Xerces2-J Version: 2.0.2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: XML Schema Structures AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Fantastic product but one small glitch with name spaces, here is the error and the fix. Problem: Essentially when include a schema into a document and the 2 name spaces ARE the same you get an error indicating that the source and the target name space must match. The validator indicates they are different even when they are the same. Solution: This error is due to a bug in the file XSDHandle.java procedure is protected XSDocumentInfo constructTrees(...) line 528 The original code is comparing 2 string objects rather than string.intern() or using .equals(). currently is // if the referred document has a target namespace differing // from the caller, it's an error else if (callerTNS == currSchemaInfo.fTargetNamespace ) { should be // if the referred document has a target namespace differing // from the caller, it's an error else if (!callerTNS.equals(currSchemaInfo.fTargetNamespace)) { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
