<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>The concept of keep-together.within-column makes no sense if you have a single block that occupies more than one column or one page. You are designing things wrong and need to rethink your requirement.</div><div><br></div><div><br></div><div><div style="font-size:8px;color:#575757">Sent via the Samsung Galaxy Note® 3, an AT&T 4G LTE smartphone</div></div><br><br><div>-------- Original message --------</div><div>From: "Akula, Nithin" <akula.nithin@optum.com> </div><div>Date:10/09/2015 8:41 PM (GMT+01:00) </div><div>To: kevin@renderx.com </div><div>Cc: RenderX Community Support List <xep-support@renderx.com> </div><div>Subject: RE: [xep-support] Re: keep-together and keep-with-next </div><div><br></div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Comic Sans MS";color:#1F497D">Thank You for providing an example.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Comic Sans MS";color:#1F497D">I will try to explain the problem in detail. I am trying the below scenario<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><xsl:template match=”xxxx”><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <fo:block keep-together.within-column=”always”><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Stuff … <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <fo:inline></fo:inline><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Stuff….<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </fo:block><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"></xsl:template><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Comic Sans MS";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Comic Sans MS";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Comic Sans MS";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Comic Sans MS";color:#1F497D">I am trying to use keep-with-next with the same fo:block to achieve this requirement.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Comic Sans MS";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">|
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">Akula Nithin</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy"> |
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">Software Engineer</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy"> |
</span><b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:#FF9900">OGS
</span></b><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">| Office
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">40 30852249</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy"> | Cell
</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">9963716952</span><span style="font-size:9.0pt;font-family:"Arial","sans-serif";color:navy">|<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Xep-support [mailto:xep-support-bounces@renderx.com]
<b>On Behalf Of </b>Kevin Brown<br>
<b>Sent:</b> Tuesday, October 06, 2015 9:12 PM<br>
<b>To:</b> 'RenderX Community Support List'<br>
<b>Subject:</b> [xep-support] Re: keep-together and keep-with-next<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">It is unclear without posting a sample, but the easiest solution to what you describe is:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><fo:block-container keep-together.within-column=”always”><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <fo:block>Stuff …</fo:block><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> <fo:block>More stuff that is optionally the second block to stick together</fo:block><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"></fo:block-container><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">For instance try this and you will see that para1 and para2 are never split apart at any column.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:root</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C">
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#0099CC">xmlns:fo</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"<a href="http://www.w3.org/1999/XSL/Format">http://www.w3.org/1999/XSL/Format</a>"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:layout-master-set></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:simple-page-master</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C"> page-width</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"700pt"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C">
page-height</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"780pt"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C">
master-name</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"first"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:region-body</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C"> margin</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"1in"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C">
column-count</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"2"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">/></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:region-before</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C"> extent</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"1in"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">/></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"></fo:simple-page-master></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"></fo:layout-master-set></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:page-sequence</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C"> master-reference</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"first"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:static-content</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C"> flow-name</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"xsl-region-before"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:block-container</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C"> height</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"1in"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:block><fo:leader/></fo:block></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"></fo:block-container></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"></fo:static-content></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096"><fo:flow</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#F5844C"> flow-name</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#FF8040">=</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#993300">"xsl-region-body"</span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:#000096">></span><span style="font-size:12.0pt;font-family:"Times New Roman","serif";color:black"><br>
</span></p></div></body>