> -----Message d'origine-----
> De : Pascal Sancho 
> Envoyé : mercredi 21 février 2007 13:17
> 
> Hi,
> 
> I think there are 2 separate problems here.
> 
> 1st: in docbook, keep-together should default to 'auto' in your case.
> 
> 2nd, in FOP:
>  - fo:table is truncated, that is the correct behaviour.
>    (there is a such message in the log file:
>     ATTENTION: Content of the region-body on page 1 overflows 
> the available area in block-progression dimension. 
> (fo:page-sequence, location: 41/44)
> 
>  - but, IMHO, the following fo:block (containing your table 
> caption) should not appear since it is a following-sibling of 
> fo:table, and these 2 FO are nested in the same fo:block, 
> witch has the keep-toguether property.
> 
> I guess that is a bug, but needs more investigation from DEV.
> 
> (FYI, tested with same result on both FOP 0.93 & latest TRUNK)
> 
> Pascal
> 
> > -----Message d'origine-----
> > De : paul_moloney [mailto:[EMAIL PROTECTED] Envoyé 
> : mercredi 
> > 21 février 2007 12:35
> > 
> > Hinrich Aue on the docbook-apps mailing list offered the following 
> > solution:
> > 
> > Add the following to your customization layer:
> > 
> > <xsl:attribute-set name="table.properties">
> >      <xsl:attribute
> > name="keep-together.within-column">auto</xsl:attribute>
> > </xsl:attribute-set>
> > 
> > Is the current corruption shown a problem with fop, or a 
> problem with 
> > the default docbook-xsl stylesheets?
> > 
> > Regards,
> > 
> > P.

I add a shorter snippet from Paul's example to illustrate that.

Pascal

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
font-family="Arial,Symbol,ZapfDingbats,LucidaUnicode" font-size="10pt" 
text-align="left" line-height="2" 
font-selection-strategy="character-by-character" 
line-height-shift-adjustment="disregard-shifts" language="en">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="blank" page-width="210mm" 
page-height="297mm" margin-top="1.8cm" margin-bottom="0.5cm" margin-left="2.5cm 
- 0pt" margin-right="2.5cm">
      <fo:region-body display-align="center" margin-bottom="2.2cm" 
margin-top="1.2cm"/>
      <fo:region-before region-name="xsl-region-before-blank" extent="1cm" 
display-align="before"/>
      <fo:region-after region-name="xsl-region-after-blank" extent="1cm" 
display-align="after"/>
    </fo:simple-page-master>

    <fo:simple-page-master master-name="body-first" page-width="210mm" 
page-height="297mm" margin-top="1.8cm" margin-bottom="0.5cm" margin-left="2.5cm 
- 0pt" margin-right="2.5cm">
      <fo:region-body margin-bottom="2.2cm" margin-top="1.2cm" 
column-gap="12pt" column-count="1"/>
      <fo:region-before region-name="xsl-region-before-first" extent="1cm" 
display-align="before"/>
      <fo:region-after region-name="xsl-region-after-first" extent="1cm" 
display-align="after"/>
    </fo:simple-page-master>

    <fo:simple-page-master master-name="body-odd" page-width="210mm" 
page-height="297mm" margin-top="1.8cm" margin-bottom="0.5cm" margin-left="2.5cm 
- 0pt" margin-right="2.5cm">
      <fo:region-body margin-bottom="2.2cm" margin-top="1.2cm" 
column-gap="12pt" column-count="1"/>
      <fo:region-before region-name="xsl-region-before-odd" extent="1cm" 
display-align="before"/>
      <fo:region-after region-name="xsl-region-after-odd" extent="1cm" 
display-align="after"/>
    </fo:simple-page-master>

    <fo:simple-page-master master-name="body-even" page-width="210mm" 
page-height="297mm" margin-top="1.8cm" margin-bottom="0.5cm" margin-left="2.5cm 
- 0pt" margin-right="2.5cm">
      <fo:region-body margin-bottom="2.2cm" margin-top="1.2cm" 
column-gap="12pt" column-count="1"/>
      <fo:region-before region-name="xsl-region-before-even" extent="1cm" 
display-align="before"/>
      <fo:region-after region-name="xsl-region-after-even" extent="1cm" 
display-align="after"/>
    </fo:simple-page-master>

    <fo:page-sequence-master master-name="body">
      <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-reference="blank" 
blank-or-not-blank="blank"/>
        <fo:conditional-page-master-reference master-reference="body-first" 
page-position="first"/>
        <fo:conditional-page-master-reference master-reference="body-odd" 
odd-or-even="odd"/>
        <fo:conditional-page-master-reference master-reference="body-odd" 
odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
  </fo:layout-master-set>

  <fo:page-sequence hyphenate="false" master-reference="body" language="en"
    format="1" initial-page-number="1" force-page-count="no-force"
    hyphenation-character="-" hyphenation-push-character-count="2"
    hyphenation-remain-character-count="2">
    <fo:flow flow-name="xsl-region-body">
      <fo:block id="d0e134">
        <fo:block xmlns:rx="http://www.renderx.com/XSL/Extensions";
        space-before.minimum="0.5em" space-before.optimum="1em" 
space-before.maximum="2em"
        space-after.minimum="0.5em" space-after.optimum="1em" 
space-after.maximum="2em" keep-together.within-column="always" id="d0e145">
<!-- XXX table -->
        <fo:table border-before-width.conditionality="retain" 
border-collapse="collapse" border-left-style="solid" border-right-style="solid" 
border-top-style="solid" border-bottom-style="solid" border-left-width="0.5pt" 
border-right-width="0.5pt" border-top-width="0.5pt" border-bottom-width="0.5pt" 
border-left-color="#282282" border-right-color="#282282" 
border-top-color="#282282" border-bottom-color="#282282" table-layout="fixed" 
width="100%">
            <fo:table-column column-number="1"/>
            <fo:table-column column-number="2"/>
            <fo:table-column column-number="3"/>
            <fo:table-header start-indent="0pt" end-indent="0pt">
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black" text-align="center">
                  <fo:block font-weight="bold">Setting</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black" text-align="center">
                  <fo:block font-weight="bold">Description</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" text-align="center">
                  <fo:block font-weight="bold">Required Value</fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-header>
            <fo:table-body start-indent="0pt" end-indent="0pt">
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>HTTP Listen port</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>The port number on which Tomcat listens for HTTP 
            connections.</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">
                  <fo:block>8080, 8081, or 8082 depending on the 
instance.</fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>HTTPS Listen port</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>The port number on which Tomcat listens for HTTPS 
            connections.</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">
                  <fo:block>
                    <fo:block space-before.optimum="6pt" 
space-before.minimum="5pt" space-before.maximum="7pt" line-height="2">8443, 
8444, or 8445 depending on the instance. 
            </fo:block>
                    <fo:block space-before.optimum="6pt" 
space-before.minimum="5pt" space-before.maximum="7pt" line-height="2">Also 
ensure that the 
            <fo:inline font-style="italic">redirectPort</fo:inline> setting 
next to the HTTP port is 
            correctly configured for the appropriate HTTPS port assigned to 
            the instance</fo:block>
                  </fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>Server shutdown port</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>The port number on which Tomcat can be contacted to 
perform 
            a shutdown (by sending the word SHUTDOWN).</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">
                  <fo:block>8100, 8101, or 8102 depending on the 
instance.</fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>AJP port:</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>The AJP port is an optional connector that offers 
enhanced 
            communication performance when a standard Apache HTTP server is 
            configured as a front-end proxy ahead of Tomcat. This step should 
            be performed even if the connector will be disabled.</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">
                  <fo:block>8200, 8201, or 8202 depending on the 
instance.</fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>Session Replication port</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>This port is used for receiving session replication 
            connections from other members of the cluster.</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">
                  <fo:block>8300, 8301, or 8302 depending on the 
instance.</fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>Enable clustering</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>Â </fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">
                  <fo:block>Uncomment the cluster support section of the 
configuration, 
            and set the cluster name to <fo:inline 
font-style="italic">pplus-external</fo:inline> , 
            or <fo:inline font-style="italic">pplus-internal</fo:inline> 
depending on the instance ( 
            <fo:inline font-style="italic">pplus-core</fo:inline> does not 
require Tomcat 
            clustering).</fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>Cluster Multicast IP address and port</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black" 
border-right-width="0.5pt" border-right-style="solid" 
border-right-color="black">
                  <fo:block>Â </fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-bottom-width="0.5pt" 
border-bottom-style="solid" border-bottom-color="black">
                  <fo:block>These should be defined to the addresses selected 
in the 
            network requirements chapter.</fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-right-width="0.5pt" 
border-right-style="solid" border-right-color="black">
                  <fo:block>Cluster node name</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt" border-right-width="0.5pt" 
border-right-style="solid" border-right-color="black">
                  <fo:block>Â </fo:block>
                </fo:table-cell>
                <fo:table-cell padding-left="2pt" padding-right="2pt" 
padding-top="2pt" padding-bottom="2pt">
                  <fo:block>The cluster node name should be defined to be the 
name of 
            the instance, followed by an instance-specific digit. For example, 
            the UI Tier <fo:inline 
font-style="italic">pplus-external</fo:inline> instance should be 
            defined as <fo:inline 
font-style="italic">pplus-external1</fo:inline> on the first UI 
            Tier machine, and <fo:inline 
font-style="italic">pplus-external2</fo:inline> on the 
            second UI Tier machine.</fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-body>
          </fo:table>
          <fo:block space-before.optimum="6pt" space-before.minimum="5pt" 
space-before.maximum="7pt" line-height="2" font-weight="bold" font-size="12 pt" 
hyphenate="false" space-after.minimum="0.4em" space-after.optimum="0.6em" 
space-after.maximum="0.8em" color="#282282" text-align="center" 
keep-with-previous.within-column="always">Table 1.1. Tomcat <fo:inline 
font-style="italic">server.xml</fo:inline> Configuration 
      Settings</fo:block>
        </fo:block>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to