Why does Fop.getDefaultHandler return a DefaultHandler?

2009-09-11 Thread Vincent Hennebert
Hi, does anyone know why the o.a.f.apps.Fop.getDefaultHandler method returns an instance of org.xml.sax.helpers.DefaultHandler and not just an org.xml.sax.ContentHandler? Could that be changed? Thanks, Vincent

Re: Why does Fop.getDefaultHandler return a DefaultHandler?

2009-09-11 Thread Jeremias Maerki
Hi Vincent Why? Not sure. Couldn't reproduce that from the mailing list archives. Changed? No, because it would break backwards-compatibility. What's the motivation behind the question? Every DefaultHandler is a ContentHandler, so this shouldn't be a problem. Interesting case, BTW, if you go loo

Re: Why does Fop.getDefaultHandler return a DefaultHandler?

2009-09-11 Thread Chris Bowditch
Vincent Hennebert wrote: Hi, does anyone know why the o.a.f.apps.Fop.getDefaultHandler method returns an instance of org.xml.sax.helpers.DefaultHandler and not just an org.xml.sax.ContentHandler? Could that be changed? Hi Vincent, Why would you want to change it? As Jeremias already said Defa

Re: Why does Fop.getDefaultHandler return a DefaultHandler?

2009-09-11 Thread Simon Pepping
I do not remember why I did that. Chris' argument is the most likely reason. In the mentioned revision there is also a method that returns FOTreeBuilder as a ContentHandler. Simon On Fri, Sep 11, 2009 at 03:49:00PM +0100, Chris Bowditch wrote: > Vincent Hennebert wrote: > >Hi, > > > >does anyone