private void parseRules(Attributes attributes){
  startMode=getModeAttribute(attributes,"startMode");
  if (startMode == null) {
    startMode=lookupCreateMode(IMPLICIT_MODE_NAME);
    md.currentMode=startMode;
    startMode.noteDefined(null);
  }
  startMode.noteUsed(locator);
  if (attributesSchema) {
    Mode wrapper=lookupCreateMode(WRAPPER_MODE_NAME);
    ActionSet actions=new ActionSet();
    actions.addNoResultAction(new AllowAction(new ModeUsage(startMode,startMode)));
    wrapper.bindElement(NamespaceSpecification.ANY_NAMESPACE,NamespaceSpecification.DEFAULT_WILDCARD,actions);
    wrapper.noteDefined(null);
    startMode=wrapper;
  }
  defaultSchemaType=getSchemaType(attributes);
}

private void parseRules ( Attributes attributes ) { startMode = getModeAttribute ( attributes , "startMode" ) ; if ( startMode == null ) { startMode = lookupCreateMode ( IMPLICIT_MODE_NAME ) ; md . currentMode = startMode ; startMode . noteDefined ( null ) ; } startMode . noteUsed ( locator ) ; if ( attributesSchema ) { Mode wrapper = lookupCreateMode ( WRAPPER_MODE_NAME ) ; ActionSet actions = new ActionSet ( ) ; actions . addNoResultAction ( new AllowAction ( new ModeUsage ( startMode , startMode ) ) ) ; wrapper . bindElement ( NamespaceSpecification . ANY_NAMESPACE , NamespaceSpecification . DEFAULT_WILDCARD , actions ) ; wrapper . noteDefined ( null ) ; startMode = wrapper ; } defaultSchemaType = getSchemaType ( attributes ) ; }
parse the rules element . initializes the start mode the current mode the defaultschematype
