Unfortunately, that's not possible. XSL-FO requires that the extent of a
side region (like region-before) must be specified absolutely. That's a
necessity due to the layout process. Otherwise, this could cause endless
loops due to circular adjustments.
See:
http://www.w3.org/TR/xsl11/#extent
A
You can also set the HEADER/FOOTER (fo:region-before/fo:region-after)
programmatically, determining the amount of space required by
counting lines of text (if you're lucky enough to have it divided
into lines!) or characters. In the first section, I specify variables
(minimum header
hi,
I use belows to define header/body size.
fo:region-before region-name=header-first extent=50pt /
fo:region-body margin-top=50pt margin-bottom=50pt /
my problem is the content of header might be greater than the size I
defined and part of content does not show up in the header of document.