Interprets the pagesheet rules to perform pagination.
FIXME (SM): this code sucks! It was done to show the concept of
rule driven pagination (which I find very nice) but
it needs major refactoring in order to be sufficiently
stable to allow any input to enter without breaking
SAX well-formness.