[XSL-LIST Mailing List Archive Home]
[xsl] dynamic header height in region-before
Subject: [xsl] dynamic header height in region-before|
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 03 Apr 2003 18:51:40 +0200
I'm back again with a question regarding XSL FO. I create the FO dynamically
via XSLT and it has following document structure:
<fo:simple-page-master master-name="simple1" page-height="210mm"
page-width="297mm" margin-right="20mm" margin-left="20mm"
<fo:region-before display-align="before" extent="10mm"/>
... some content ...
In the region-before I have a <fo:block/>, which is filled with some
dynamically created text. In some cases the text is longer than the one line
and it must be wrapped - but this hidden because of the little extension of
region-before (10mm). If I set it to 20 mm the text wraps correctly, but it
goes into the region-body, what I don't want to have. Of course I can set
margin-top for region-body to 20mm too, but than I have in most cases to
much space between the text in the header and region-body.
So it would be nice to have a dynamic region-before height (@extent). Or
region-body simply starts there where region-before ends. I used
region-before, because this header should be printed out on every page.
Is there any solution or workaround? For example having the text in
region-body, but printing it also on every page?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list