some nodes have nested foo's inside them...
<foo type="a" name="Fooey">
<foo type="x" name="FooChild"/>
<foo type="y" name="FooChild2"/>
</foo>
So far I've written a single template match for the foo element that
returns a fo:block (of full page width) for each match and calls itself
if it has any foo children, thereby producing nested fo:blocks where
appropriate..
The problem that I'm having is when trying to prevent any one foo result
from splitting over two pages. I'd like to keep all the contents of one
foo match together (ignore the nested ones for now); so either encourage
it to keep on one page or break and go to the next.
Have you tried putting in your one template rule the following test: