Definitely we should. But it's not that easy, since it requires to build a compressed DOM and pass it to the generator. It would be much easier to have a sort of "test setup" so that we might run tests against a live database containing critical nodes. Vlad, you are the test guy :-), how would you suggest to proceed?

How I would proceed:

public void testBug() {

   String value = "<.../>"     // our xml document
   Document doc = DOMBuilder.build(value);
   CompressedDOM doc2 = ...compress(doc);

   Whatever blah = generator.process(doc2);
   // now we can assess the object blah.
}

or something like that. This will certainly imply some modifications to the code but the design will (normally) be improved.

Can you do it? Today I'm behind a nasty firewall, and I have troubles in getting CVS access.

I'll do it tonight/tomorrow.

-Vladimir

--
Vladimir R. Bossicard
Apache Xindice - http://xml.apache.org/xindice



Reply via email to