protected void typeSubsumption(XSComplexTypeDecl dType, XSComplexTypeDecl bType,
XSGrammarBucket grammarBucket, SubstitutionGroupHandler SGHandler,
CMBuilder cmBuilder, XMLErrorReporter errorReporter, SimpleLocator locator) {
// When we get here, particles are not null. Neither are content models.
XSCMValidator cmd = dType.getContentModel(cmBuilder);
XSCMValidator cmb = bType.getContentModel(cmBuilder);
if (!new XS11CMRestriction(cmb, cmd, SGHandler, grammarBucket, cmBuilder, this).check()) {
reportSchemaError(errorReporter, locator,
"derivation-ok-restriction.5.4.2",
new Object[]{dType.fName});
}