private boolean checkEWRestriction() { // 1 G is skip. if (wb.getProcessContents() == XSWildcardDecl.PC_SKIP) { return true; } qname.uri = ed.fTargetNamespace; qname.localpart = ed.fName; eb = getGlobalElementDecl(qname); if (eb == null) { // 2 G is lax and S is not skip. return wb.getProcessContents() == XSWildcardDecl.PC_LAX; } else { // 4 G and S are both Element Declarations and all of the following are true: return checkEERestriction(); } }