Hi,
XSDHandler:getGlobalDecl() does not report error for a keyref referencing to a
non declared key with same name as that of keyref.
<example>
<xsd:keyref name="abc" refer="abc">
</example>
Please find attached patch for the same.
Cheers,
Rahul.
Sun Microsystems, Inc.
Index: XSDHandler.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java,v
retrieving revision 1.7
diff -u -w -r1.7 XSDHandler.java
--- XSDHandler.java 2001/12/10 23:30:16 1.7
+++ XSDHandler.java 2001/12/11 10:24:56
@@ -857,8 +857,13 @@
break;
}
- if (retObj != null)
+ if (retObj != null) {
return retObj;
+ }
+ else if (retObj == null && declType == IDENTITYCONSTRAINT_TYPE) {
+ reportSchemaError("src-resolve", new Object[]{declToTraverse.rawname,
+COMP_TYPE[declType]});
+ return null;
+ }
if (DOMUtil.isHidden(decl)) {
// decl must not be null if we're here...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]