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.