Committed the patch. Thx Khaled for the patch. Could you update the Bugzilla?
Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
XML - Khaled
Noaman/Toronto/IB To: [EMAIL PROTECTED]
[EMAIL PROTECTED] cc:
Subject: redefine patch
03/18/2003 09:19
AM
Please respond to
xerces-j-dev
Hi,
The following patch will resolve bugzilla bugs 16579, 16639, and 16702.
Regards,
Khaled
---
D:
\cvswork\xml-xerces\java\src\org\apache\xerces\impl\xs\traversers\XSDHandler.java
2003-02-14 10:25:03.000000000 -0500
+++ XSDHandler.java 2003-02-25 16:58:56.000000000 -0500
@@ -1650,6 +1650,14 @@
collidedWithRedefine = false;
}
if (redefinedSchema != null) { //redefinition involved
somehow
+ // If both components belong to the same document then
+ // report an error and return.
+ if
(fDoc2XSDocumentMap.get(DOMUtil.getDocument(collidingElem)) ==
currSchema) {
+
+ reportSchemaError("sch-props-correct.2", new Object
[]{qName}, currComp);
+ return;
+ }
+
String newName =
qName.substring(qName.lastIndexOf(',')+1)+REDEF_IDENTIFIER;
if (redefinedSchema == currSchema) { // object comp.
okay here
// now have to do some renaming...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
