diff --git a/build/classes/fr/devinsy/xid/Presenter.class b/build/classes/fr/devinsy/xid/Presenter.class index 23fe12b..cbfc430 100644 Binary files a/build/classes/fr/devinsy/xid/Presenter.class and b/build/classes/fr/devinsy/xid/Presenter.class differ diff --git a/src/fr/devinsy/xid/Presenter.java b/src/fr/devinsy/xid/Presenter.java index 1b42e66..af8162a 100644 --- a/src/fr/devinsy/xid/Presenter.java +++ b/src/fr/devinsy/xid/Presenter.java @@ -717,23 +717,24 @@ public class Presenter db.setErrorHandler (errorHandler); Schema schema = db.getSchema (); -System.out.println("schema=" + schema); + logger.debug ("schema=" + schema); // Parse the input file. result = db.parse (source); -System.out.println("ZO4"); + if (errorHandler.hasError ()) { -System.out.println("ZO4a"); - throw new Exception (errorHandler.toString ()); + // Most time, error is (with StringPresenter): + // "Error at line 1 : Document root element "html", must match DOCTYPE root "null". + // Error at line 1 : Document is invalid: no grammar found. + // We ignore it. STU + logger.debug(errorHandler.toString ()); } else { -System.out.println("ZO4b"); DomPresenter.addMetaTag (result, "generator", "XID 0.0"); } -System.out.println("ZO5"); } catch (ParserConfigurationException exception) {