<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Kirch:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>As xep-support has replied, this is a known limitation.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I fail to see the need for it in the example you provided. Is
this is simplified example? There is no two-column text inside it. In reality,
you have all blocks spanned and therefore it equates to a one-column document. This
condition only occurs when you have a need to keep a span-area attached to a
section that is multi-column.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>We did implement two customizations in the past for customers to
fix this condition:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>1) In the first case, it was acceptable to do formatting in
multiple passes. So we implemented a solution using &lt;rx:pinpoint&gt; markers
after the section headings and custom code that checked the XEP Intermediate
Format file to see if these pinpoints ended a page. The pinpoint carried the xpath
to the element that caused the specific heading. The document is checked sequentially
and of course needs to be recomposed after each &quot;fix&quot;. If a bad header
was encountered, the xpath was used to find the offending header in the source
and add an attribute. The presence of this attribute would cause a &quot;page-break-before=always&quot;
in the FO.  This iteration continued until the document finished. So,
basically, we implemented a computer-based solution that was 100% automatic but
it did as suggested -- a {computerized} &quot;manual&quot; application of
page-breaks before the offending headings.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>2) In the second case, these &quot;areas&quot; were always
smaller than one page. We developed one style sheet that formatted only the
headings along with the two-column areas (ignoring the remaining content). Each
of these &quot;areas&quot; were formatted onto a new page in a document in XEP
Intermediate Format. A special process intercepted this XEP Intermediate File
and wrote individual XEP Intermediate Files for each area. This process also examined
the XEP Intermediate Format and calculated the height of each area and set the
page dimensions to these heights. The height was also recorded in a separate
XML file with the file name. So the result of this first pass was:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>a) individual XEP Intermediate Files each sized to the exact
dimensions of the small heading+two column area<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>b) a separate XML file that listed each file name written along
with the dimensions<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Then the &quot;trick&quot; ... use these XEP Intermediate Format
files as graphics.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The document was then formatted to final form and this time
those two column areas had a template which inserted these XEP Intermediate
Format files as an &lt;fo:external-graphic&gt;. Since this is a graphic, there
is no re-formatting of the text and it would be placed all within a page. The
separate XML file was used to establish the src and height attributes. As you
are not formatting anything twice, this process took a little work to set up
but formats in almost the same time as would be required to format the whole
document. As noted, it only works if the areas [the spanned heading and the
following two column section] are going to be smaller than one section. In the
real-life example, these small areas were advertisements on the page -- a
heading and  a small, variable sized two-column area where the user intended
that the whole thing was kept-together so the solution fit perfectly with what
they needed.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Maybe one of these will work for you in your situation?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Kevin Brown<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>RenderX <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>kevin@renderx.com<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<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"'> Kirch Fritz
[mailto:Friedrich.Kirch@it2media.de] <br>
<b>Sent:</b> Friday, August 28, 2009 2:06 AM<br>
<b>To:</b> xep-support@renderx.com<br>
<b>Cc:</b> Chris Heuer; kevin@renderx.com<br>
<b>Subject:</b> keep-with-next; keep-with-previous doesnt work for block
span=&quot;all&quot;<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Dear
support,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>in
XEP 4.15 in my 2column page-layout there is a page-break between two blocks
having attribute span=&#8221;all&#8221;.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>But
I think there should not be a page-break, because I use keep-with-next and
keep-with-previous!<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&lt;block
span=&quot;all&quot; keep-with-next.within-page=&#8221;always&#8221;&gt; and
&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&lt;block
span=&quot;all&quot; keep-with-previous.with-page=&#8221;always&gt;&#8221;
doesnt work for <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Where
is the problem or where is my misunderstandig? <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'>(attached
is FO-file and PDF-file)<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<div>

<p><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'>Friedrich Kirch<br>
Softwareentwicklung Media Business Suite</span><span lang=DE><o:p></o:p></span></p>

<p><span lang=DE><img width=91 height=21 id="_x0000_i1025"
src="cid:image001.jpg@01CA27B6.EDD34EA0" alt="[ IT2media ]"><o:p></o:p></span></p>

<table class=MsoNormalTable border=0 cellpadding=0>
 <tr>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:black'>Tel.:</span><o:p></o:p></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:black'>&nbsp;+49 911 30 730-0</span><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:black'>FAX:</span><o:p></o:p></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:black'>&nbsp;+49 911 30 730-625</span><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";
  color:black'>Mail:</span><o:p></o:p></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:black'>&nbsp;<a href="mailto:friedrich.kirch@it2media.de"><span
  style='text-decoration:none'>friedrich.kirch@it2media.de</span></a></span><o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:black'>Homepage:</span><o:p></o:p></p>
  </td>
  <td style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:black'>&nbsp;<a href="http://www.it2media.de" target="_blank"><span
  style='text-decoration:none'>www.it2media.de</span></a></span><o:p></o:p></p>
  </td>
 </tr>
</table>

<div class=MsoNormal align=center style='text-align:center'><span lang=DE>

<hr size=1 width="100%" noshade style='color:gray' align=center>

</span></div>

<p class=MsoNormal><span lang=DE style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:#707070'>IT2media GmbH &amp; Co. KG, Pretzfelder Str. 15, D-90425
Nürnberg; Kommanditgesellschaft, Sitz Nürnberg, HRA Nürnberg 12784, Persönlich
haftende Gesellschafterin: IT2media Beteiligungsgesellschaft mbH, Sitz
Nürnberg, HRB Nürnberg 19511;
Geschäftsführer:&nbsp;Dr.&nbsp;Gerhard&nbsp;Baier,&nbsp;Claudia&nbsp;Dietrich</span><span
lang=DE><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=DE><o:p>&nbsp;</o:p></span></p>

<p style='margin:0in;margin-bottom:.0001pt'><span lang=DE style='font-size:
8.0pt;font-family:"Arial","sans-serif"'>**********************************************************************</span><span
lang=DE> <o:p></o:p></span></p>

<p style='margin:0in;margin-bottom:.0001pt'><span lang=DE style='font-size:
8.0pt;font-family:"Arial","sans-serif"'>Diese E-Mail wurde auf Viren
ueberprueft.</span><span lang=DE> <o:p></o:p></span></p>

<p style='margin:0in;margin-bottom:.0001pt'><span lang=DE style='font-size:
8.0pt;font-family:"Arial","sans-serif"'>mailsweeper@it2media.de</span><span
lang=DE> <o:p></o:p></span></p>

<p style='margin:0in;margin-bottom:.0001pt'><span lang=DE style='font-size:
8.0pt;font-family:"Arial","sans-serif"'>**********************************************************************</span><span
lang=DE> <o:p></o:p></span></p>

</div>

</body>

</html>