Thank You for providing an example.
I will try to explain the problem in detail. I am trying the below scenario
<xsl:template match="xxxx">
<fo:block keep-together.within-column="always">
Stuff ...
<fo:inline></fo:inline>
Stuff....
</fo:block>
</xsl:template>
The content in fo:block itself is in a loop and is dynamic I have only one fo:block in hand at a time, the first requirement is to keep this content within a fo:block with in a column. The content in a single block occasionally occupies 1-2 pages, in such cases sometimes the next fo:block just comes after the previous one and sometimes it comes in next column with gaps in the previous column and sometimes in next page all together.
I am trying to use keep-with-next with the same fo:block to achieve this requirement.
Thanks,
| Akula Nithin | Software Engineer | OGS | Office 40 30852249 | Cell 9963716952|
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Tuesday, October 06, 2015 9:12 PM
To: 'RenderX Community Support List'
Subject: [xep-support] Re: keep-together and keep-with-next
It is unclear without posting a sample, but the easiest solution to what you describe is:
<fo:block-container keep-together.within-column="always">
<fo:block>Stuff ...</fo:block>
<fo:block>More stuff that is optionally the second block to stick together</fo:block>
</fo:block-container>
For instance try this and you will see that para1 and para2 are never split apart at any column.
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master page-width="700pt" page-height="780pt" master-name="first">
<fo:region-body margin="1in" column-count="2"/>
<fo:region-before extent="1in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:static-content flow-name="xsl-region-before">
<fo:block-container height="1in">
<fo:block><fo:leader/></fo:block>
</fo:block-container>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
<fo:block-container keep-together.within-column="always">
<fo:block>Para 1: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
<fo:block>Para 2: Exerci takimata in blandit nostrud stet consetetur at sea feugiat. Nonummy sadipscing ipsum diam sea dolore sit velit molestie diam. Erat ea blandit delenit justo enim autem augue lobortis dolor at eleifend invidunt ea dolores vero clita in stet. Velit tation sit gubergren dolore tempor aliquam duo est sanctus sit sea magna feugiat sed sit sit. Stet sit amet sit amet velit. Sanctus et eum sed no et clita eos in et accusam ea sea praesent.</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
Kevin Brown
RenderX
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Akula, Nithin
Sent: Tuesday, October 06, 2015 7:51 AM
To: xep-support@renderx.com<mailto:xep-support@renderx.com>
Subject: [xep-support] keep-together and keep-with-next
Hi Kevin,
I have 2 requirements currently
1) To group content under a fo:block under a column
2) To stick 2 different fo:block when necessary
I am trying to use the keep-together.within-column="always" and keep-with-previous.within-page="always" in combination on the fo:block. But I am not able to achieve what
I want and the behavior of the fo:block is quite inconsistent.
Can we use them in combination at all ?
Thanks,
| Akula Nithin | Software Engineer | OGS | Office 40 30852249 | Cell 9963716952|
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.
_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Fri Oct 9 11:35:24 2015
This archive was generated by hypermail 2.1.8 : Fri Oct 09 2015 - 11:35:40 PDT