docbook-apps

  • 1.  Docbook and fop 0.94

    Posted 12-21-2007 09:41
    Hi
    I am trying to upgrade from fop 0.20.5 to 0.94 and found out that there is a irritating change in operations regarding table processing.

    When processing tables they:

    1 Don´t cross pages (e.g if a table doesn´t fit on the current page it is rendered on the the next page) and

    2 If a table is "too large" to fit a page it will get corrupted (with an error message: "WARNING: Content of the region-body on page n overflows the available area in block-progression dimension. (fo:page-sequence, no context info available)")

    I know that this seems to be a FOP shortcoming, I looked on outstanding errors on Fop´s homepage, but anyway:

    Does somebody have a way of circumwent this behaviour in any way?

    Regards

    Lars Bjerges


    Swedbank AB (publ)

    105 34 Stockholm

    Telefon: +46 (0)8 58 59 43 45

    Mobil: +46 (0)70 95 27 774

    Email:lars.bjerges@swedbank.se

    www.swedbank.se <http://www.swedbank.se/>



    Vi ber dig lägga märke till att detta e-postmeddelande kan innehålla konfidentiell information. Om du felaktigt blivit mottagare av detta meddelande ber vi dig informera avsändaren om felet genom att använda svara-funktionen. Vi ber dig också att radera e-postmeddelandet utan att skicka det vidare eller kopiera det. Trots att vi intygar att e-postmeddelandet och eventuella bilagor inte innehåller virus och andra fel som kan påverka datorn eller IT-systemet där det mottages och läses, öppnas det på mottagarens eget ansvar. Vi tar inte på oss något ansvar för förlust eller skada, som har uppstått i samband med att e-postmeddelandet mottagits och använts.

    _____________________________________________________________________________________________________________________________________________________________



    Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachment are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message.






  • 2.  Re: [docbook-apps] Docbook and fop 0.94

    Posted 12-21-2007 11:30
    Try adding this to your customization:

    <xsl:attribute-set name="formal.object.properties">
    <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
    </xsl:attribute-set>

    A better explanation can be found in Bob's book:
    http://www.sagehill.net/docbookxsl/PageBreaking.html#KeepTogetherPI

    I've recently discovered that a table larger than 215 rows or so will
    cause the conversion to bomb no matter what the setting, but that might
    be a problem in my toolchain. Either way, the above setting will cause
    large tables to break across pages in fop 0.94.



    lars.bjerges@swedbank.se wrote:
    > Hi
    > I am trying to upgrade from fop 0.20.5 to 0.94 and found out that
    > there is a irritating change in operations regarding table processing.
    >
    > When processing tables they:
    >
    > 1 Don´t cross pages (e.g if a table doesn´t fit on the current page it
    > is rendered on the the next page) and
    >
    > 2 If a table is "too large" to fit a page it will get corrupted (with
    > an error message: "WARNING: Content of the region-body on page n
    > overflows the available area in block-progression dimension.
    > (fo:page-sequence, no context info available)")
    >
    > I know that this seems to be a FOP shortcoming, I looked on
    > outstanding errors on Fop´s homepage, but anyway:
    >
    > Does somebody have a way of circumwent this behaviour in any way?
    >
    > Regards
    >
    >
    > *Lars Bjerges*
    >
    >
    > Swedbank AB (publ)
    >
    > 105 34 Stockholm
    >
    > Telefon: +46 (0)8 58 59 43 45
    >
    > Mobil: +46 (0)70 95 27 774
    >
    > Email:lars.bjerges@swedbank.se <mailto:lars.bjerges@swedbank.se>
    >
    > www.swedbank.se <http://www.swedbank.se/>
    >
    >
    >
    > Vi ber dig lägga märke till att detta e-postmeddelande kan innehålla
    > konfidentiell information. Om du felaktigt blivit mottagare av detta
    > meddelande ber vi dig informera avsändaren om felet genom att använda
    > svara-funktionen. Vi ber dig också att radera e-postmeddelandet utan
    > att skicka det vidare eller kopiera det. Trots att vi intygar att
    > e-postmeddelandet och eventuella bilagor inte innehåller virus och
    > andra fel som kan påverka datorn eller IT-systemet där det mottages
    > och läses, öppnas det på mottagarens eget ansvar. Vi tar inte på oss
    > något ansvar för förlust eller skada, som har uppstått i samband med
    > att e-postmeddelandet mottagits och använts.
    >
    > _____________________________________________________________________________________________________________________________________________________________
    >
    >
    >
    > Please note that this message may contain confidential information. If
    > you have received this message by mistake, please inform the sender of
    > the mistake by sending a reply, then delete the message from your
    > system without making, distributing or retaining any copies of
    > it. Although we believe that the message and any attachment are free
    > from viruses and other errors that might affect the computer or IT
    > system where it is received and read, the recipient opens the message
    > at his or her own risk. We assume no responsibility for any loss or
    > damage arising from the receipt or use of this message.
    >
    >
    >



  • 3.  SV: [docbook-apps] Docbook and fop 0.94

    Posted 12-21-2007 15:31
    I added the costomization suggested and it worked allright.
    That´s a great Christams present for me, thank you.
    For now I won´t fret over the 215 or so limit but that might probably be a future obstacle.

    Thanks again, you made my day.

    Lars Bjerges



    Swedbank AB (publ)

    105 34 Stockholm

    Telefon: +46 (0)8 58 59 43 45

    Mobil: +46 (0)70 95 27 774

    Email:lars.bjerges@swedbank.se



    www.swedbank.se <http://www.swedbank.se/>



    ________________________________

    Från: Dave Cushman [mailto:dave@cushmanroad.com]
    Skickat: den 21 december 2007 12:30
    Till: Lars Bjerges; docbook-apps@lists.oasis-open.org
    Ämne: Re: [docbook-apps] Docbook and fop 0.94


    Try adding this to your customization:

    <xsl:attribute-set name="formal.object.properties">
    <xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
    </xsl:attribute-set>

    A better explanation can be found in Bob's book: http://www.sagehill.net/docbookxsl/PageBreaking.html#KeepTogetherPI

    I've recently discovered that a table larger than 215 rows or so will cause the conversion to bomb no matter what the setting, but that might be a problem in my toolchain. Either way, the above setting will cause large tables to break across pages in fop 0.94.