Reputation: 515
I'm new to xsl fo and here is my problem:
I declare a fo:region-body with two columns
<fo:region-body column-count="2" />
Is there a way for these 2 columns to have a header? If it is possible, can I change the text of the header dynamically?
In fact, in the source XML, I have several category followed by some text, and I wish to recall the category on each new column of my layout.
Thanks a lot!
Upvotes: 1
Views: 346
Reputation: 8857
Put the actual "column" headers in the region-before (like use a two column, one row simple table at the bottom of the region-before). Then use markers in the content flow, marking what you desire. Inside that table in the region-before, retrieve the markers to make the headers dynamic (based on some content on that page).
Another option (although it would depend on what content you wish in the header), would be to use an actual table structure in the two column flow. Just a table with a single row, single cell and a header. Of course, you do not need to apply borders or anything to this. This would be more limiting and it would require more samples of what exactly is being placed into that header. The first option above is much more generic.
Upvotes: 0