// diagnose error, if possible
StringRef err = new StringRef();
current.onText2( txt, this, err, null );
// report an error
errorHandler.error( new ValidityViolation(locator,
localizeMessage( ERR_UNEXPECTED_TEXT, null ),
new ErrorInfo.BadText(txt) ) );
}
// characters are validated. report to the handler.