Hello.

I have 8 lines of payer information that I print on a PDF document.
I need these 8 lines to print together on the same page.
The first three lines must only print if a certain condition is met so I have 
them within a <xsl:if> and <xsl:block>.
The next 5 lines must only print if another condition is met and they are in 
another <xsl:if> and <xsl:block>.

I call a template that prints these 8 lines and in the template I try to get 
them to print all 8 lines on the same page. I tried adding "keep-with-next="1"" 
on all the <fo:table-row> lines but that didn't work. I then tried 
"keep-with-next="always"" to no avail.

I then tried the following code to encapsulate the 8 rows within two blocks but 
that didn't work either.
Code:
  <xsl:template name="tmpRequirements">
    <fo:block keep-with-next.within-page="always">
      <fo:block keep-together.within-page="always">
        <!-- PAYEE LINE -->
        <xsl:if test="EOB/ALLOWANCE &gt; 0>
          <fo:block padding-top=".2cm">
Here's where I call the template.
Code:
      <fo:block padding="0pt">
        <xsl:call-template name="tmpRequirements">
        </xsl:call-template>
      </fo:block>
I'm using FOP version 1.0.

One other thing I tried was to add two blocks with keep-with-next.within-
page="always" in the first block and
keep-together.within-page="always" in the second block as above, when calling 
the template. That didn't work either.

Any suggestions as to how to keep the 8 lines together on the same page will be 
greatly appreciated!

Thanks,
Rita


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to