Hi,
Please have a look at the attached file sample, and find out if you get
the solution using this example.
Cheers,
Venkat.
hazlup wrote:
Using a two column layout keep-with-next does not appear to do the job.
Something like this
<!-- the header -->
<fo:block keep-with-next="always">
<xsl:value-of select=text()
</fo:block>
<!-- the bullets-->
<fo:list-block>
<xsl:call-template name="bullets">
<xsl:with-param select="*"/>
</xsl:call-template>
</fo:list-block>
The header is appearing at the bottom of one column and the bullets are
starting at the top of the next column.
Is this expected behaviour?
PS. I'm not at work right now, but I'll try .within-page asap.
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0"
orphans="0">
<fo:layout-master-set>
<fo:simple-page-master master-name="normal" page-width="5in"
page-height="20 * 14.4pt">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="normal">
<fo:flow flow-name="xsl-region-body">
<fo:block>block1</fo:block>
<!-- Keeps on list-block level -->
<fo:list-block background-color="rgb(150,150,255)"
provisional-distance-between-starts="25mm"
provisional-label-separation="5mm"
keep-together.within-page="always">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>label1</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item1</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>label2</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item2</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block>block2</fo:block>
<fo:list-block background-color="rgb(230,230,255)"
provisional-distance-between-starts="25mm"
provisional-label-separation="5mm"
keep-together.within-column="1">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>label1</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item1</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>label2</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item2</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block>block3</fo:block>
<!-- Keeps on list-item level -->
<fo:list-block
provisional-distance-between-starts="25mm"
provisional-label-separation="5mm">
<fo:list-item keep-together.within-page="always"
background-color="rgb(150,150,255)">
<fo:list-item-label end-indent="label-end()">
<fo:block>label1</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item1</fo:block>
<fo:block>item1</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item keep-together.within-column="1"
background-color="rgb(230,230,255)">
<fo:list-item-label end-indent="label-end()">
<fo:block>label1</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item1</fo:block>
<fo:block>item1</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>label3</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item3</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block>block4</fo:block>
<!-- Keeps on list-item-body level -->
<fo:list-block
provisional-distance-between-starts="25mm"
provisional-label-separation="5mm">
<fo:list-item background-color="rgb(150,150,255)">
<fo:list-item-label end-indent="label-end()">
<fo:block>label1</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()"
keep-together.within-page="always">
<fo:block>item1</fo:block>
<fo:block>item1</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item background-color="rgb(230,230,255)">
<fo:list-item-label end-indent="label-end()">
<fo:block>label2</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()"
keep-together.within-column="1">
<fo:block>item2</fo:block>
<fo:block>item2</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>label3</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>item3</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block>block5</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]