Hi Georg, Georg Datterl wrote: > Hi Andreas, > >> I think Vincent is right: not doable with XSL-FO. >> Breaking the flow's column-layout can only be achieved by span="all" >> and that property only has effect for direct children of the flow. >> If you specify it on a deeper block, the processor should ignore it >> (according to the Rec) > > So the only maybe possible solution is a dynamic height page header. When > specifying the header extend, I'd need to reference the block in the header > and include its size...
Have a look at the attached FO file. Actually you would specify a ‘normal’ height for the region-before, and set the overflow property to ‘visible’. When the marker for the table is retrieved, then it would overflow the region-before and appear in the body. The second part of the trick is to enclose the table into a block with padding-before.conditionality set to ‘retain’. That way, when the table is broken over columns it will be ‘shifted’ from the top of the region-body, leaving room for the marker. Provided that you don’t specify any background on the region-body you should get the desired result. You normally can safely ignore the overflow warnings FOP will issue. > Regards, > > Georg Datterl HTH, Vincent
<?xml version="1.0" standalone="no"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="page" page-height="10cm" page-width="15cm" margin="1cm"> <fo:region-body margin-top="12pt" column-count="3"/> <fo:region-before extent="12pt" overflow="visible"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="page"> <fo:static-content flow-name="xsl-region-before"> <fo:block font-size="10pt">Page <fo:page-number/></fo:block> <fo:retrieve-marker retrieve-class-name="headline" retrieve-position="first-starting-within-page" retrieve-boundary="page"/> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block padding-before.length="14.4pt" padding-before.conditionality="retain"> <fo:table table-layout="fixed" width="100%" border="1pt solid black" border-after-width.conditionality="retain"> <fo:table-header> <fo:table-cell><fo:block>TH 1</fo:block></fo:table-cell> <fo:table-cell><fo:block>TH 2</fo:block></fo:table-cell> </fo:table-header> <fo:table-body> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>1a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>1b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>2a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>2b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>3a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>3b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>4a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>4b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>5a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>5b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>6a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>6b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>7a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>7b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>8a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>8b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>9a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>9b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>10a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>10b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>11a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>11b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>12a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>12b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>13a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>13b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>14a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>14b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>15a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>15b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>16a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>16b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>17a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>17b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>18a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>18b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>19a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>19b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>20a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>20b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>21a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>21b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>22a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>22b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>23a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>23b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>24a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>24b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>25a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>25b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>26a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>26b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>27a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>27b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>28a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>28b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>29a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>29b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>30a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>30b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>31a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>31b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>32a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>32b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>33a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>33b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>34a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>34b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>35a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>35b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>36a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>36b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>37a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>37b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>38a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>38b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>39a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>39b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>40a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>40b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>41a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>41b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>42a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>42b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>43a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>43b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>44a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>44b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>45a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>45b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>46a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>46b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>47a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>47b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>48a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>48b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>49a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>49b</fo:block></fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="headline"><fo:block>Headline...</fo:block></fo:marker> <fo:block>50a</fo:block> </fo:table-cell> <fo:table-cell><fo:block>50b</fo:block></fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:block> <fo:block>Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler. Filler.</fo:block> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
