On 09 Apr 2009, at 22:47, Sam Fuqua wrote:
Hi Sam
I'm getting a strange fop error that I can't figure out why I'm
getting it.
The error is this:
ERROR: 'Error(Unknown location): fo:block is not a valid child
element of fo:table-row.'
My XSL is at the bottom.
Well, the XSL itself will not really help you to track this down.
What you'll need to do is dump the resulting FO to disk somewhere, and
then either run it through FOP using the command-line interface or
open the file in an XML editor to search for it using XPath (//table-
row[block]).
If you just re-run it from command-line, the error message above will
point you to the actual location in the file. The downside is that
there may be more of those after that, and you will have to repeat the
procedure until all occurrences are eliminated. Using an XML editor,
you can at least identify the whole set of offending nodes in one go.
Knowing where exactly those situations occur, should give you a clue
on how to prevent it from happening.
HTH!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]