From 724126d67624f37d5e9e225a6d90ce9927495efd Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 25 Feb 2010 02:11:01 +0100 Subject: [PATCH] debug step --- demo/XidDemo.java | 16 ++++++++-------- src/fr/devinsy/xid/Presenter.java | 9 ++++++--- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/demo/XidDemo.java b/demo/XidDemo.java index 24ddb6e..43f795c 100644 --- a/demo/XidDemo.java +++ b/demo/XidDemo.java @@ -51,7 +51,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } System.out.println ("datas = new Data ();"); @@ -80,7 +80,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } @@ -115,7 +115,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } @@ -161,7 +161,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } @@ -244,7 +244,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } System.out.println (html); @@ -260,7 +260,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } System.out.println (html); @@ -276,7 +276,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } System.out.println (html); @@ -292,7 +292,7 @@ class XidDemo } catch (Exception exception) { - System.out.println("Error " + exception.getMessage()); + System.out.println(exception.getMessage()); html = null; } System.out.println (html); diff --git a/src/fr/devinsy/xid/Presenter.java b/src/fr/devinsy/xid/Presenter.java index e9050fb..1b42e66 100644 --- a/src/fr/devinsy/xid/Presenter.java +++ b/src/fr/devinsy/xid/Presenter.java @@ -658,8 +658,8 @@ public class Presenter Attributes tagAttributes; result.append (processAttributes (node.getAttributes (), - null, - suffix)); + null, + suffix)); // if (node.getChildNodes () == null) @@ -717,11 +717,12 @@ 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"); @@ -729,8 +730,10 @@ System.out.println("ZO4a"); } else { +System.out.println("ZO4b"); DomPresenter.addMetaTag (result, "generator", "XID 0.0"); } +System.out.println("ZO5"); } catch (ParserConfigurationException exception) {