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 work-around is to specify a rather large value for region-before and then investigate the size used up by its content by inspecting the area tree XML (-at on the command-line) and then adjusting the value in your stylesheet and finally running FOP once more with the effective value. On 08.06.2006 06:02:42 Nguyen, Thang wrote: > 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. > Could someone show me how to make header&body autoresize themselves to > fit the content of the header ? Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
