On Jun 7, 2006, at 11:34, Jeremias Maerki wrote:
I don't manage to reproduce the problem with your description. I've
put
a list-item as direct child of a block and FOP fails properly with a
ValidationException. Would you please post an FO file that I can
use to
reproduce it? Thanks.
FWIW: I was a bit puzzled too about this. Purely looking at the FOP
code, I don't see how this could happen.
I'm not sure, but IIRC, Raphael was working on placing an XMLFilter
in between, and that may be causing the misleading error messages...
Tried myself too, and without any customization, FOP halts as expected.
A possible cause is that FOTreeBuilder$MainFOHandler.startElement()
fails with a ValidationException that the custom code catches and
recovers from, instead of rethrowing. If this happens, then
FOTreeBuilder.delegate.endElement() could be called for an element
that doesn't exist, or some other weirdness could take place, like
the 'depth' member variable being incremented in startElement(), but
missing one decrement in endElement() (?)
Remote guesses, but IMO we have to assume it's the custom code here
(unless Raphael has evidence to prove otherwise).
Later,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]