ErrorDispatcher errDisp = compiler.getErrorDispatcher();
Enumeration enumeration =
compiler.getPageInfo().getTagLibraries().elements();
while (enumeration.hasMoreElements()) {
TagLibraryInfo tli = (TagLibraryInfo) enumeration.nextElement();
ValidationMessage[] errors
= ((TagLibraryInfoImpl) tli).validate(xmlView);
if ((errors != null) && (errors.length != 0)) {
if (errMsg == null) {
errMsg = new StringBuffer();
}
errMsg.append("<h3>");
errMsg.append(errDisp.getString("jsp.error.tlv.invalid.page",
tli.getShortName()));
errMsg.append("</h3>");
for (int i=0; i<errors.length; i++) {
errMsg.append("<p>");
errMsg.append(errors[i].getId());
errMsg.append(": ");