OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: AW: [docbook-apps] Edge case with dbfo-need

I ran your example xml with my combination of Xalan-J-2.7.1 and FOP 1.1. No problems there. The vertical space between the first para and admonition and the second respectively ist absolutely the same. The processing instruction was definitely recognized by the system, I changed the height value to 8 in to force a page break. This was also successful. No errors or other warnings in my log furthermore.


-----Ursprüngliche Nachricht-----
Von: Richard Hamilton [mailto:hamilton@xmlpress.net] 
Gesendet: Mittwoch, 1. April 2015 21:47
An: DocBook Apps Mailing List
Betreff: [docbook-apps] Edge case with dbfo-need

I just ran into an interesting edge case when building with dbfo-need when the following conditions are true:

1) You have a dbfo-need processing instruction above an admonition (warning, tip, etc.)
2) The admonition is the last element in a section (technically, the last block element; an indexterm doesn't change anything).
3) The dbfo-need is not activated (that is, the admonition is small enough to fit on the current page).

When these three things are true, the vertical space between the preceding paragraph and the admonition will be smaller if there is a dbfo-need than if the processing instruction is not present.

I was running the 1.78.1 stylesheets (as well as a more recent snapshot) with no customization, Saxon, and XEP. I don't have a version of FOP active, so I don't know if this is a problem with XEP, the stylesheets, or something else.

I've included a short example that illustrates the problem.

Does anyone have any idea what might be going on here?

Best regards,
Dick Hamilton
XML Press
XML for Technical Communicators

================ Sample docbook =================

<?xml version="1.0" encoding="utf-8"?>
<article xmlns="http://docbook.org/ns/docbook"; version="5.0">
  <title>dbfo-need and admonition example</title>
  <section xml:id="s.shorthistory">
    <title>First section</title>
    <para>This first admonition has a dbfo-need processing instruction in front of it.</para>
    <?dbfo-need height="1in"?>
      <para>This one has a dbfo-need in front of it.</para>
    <title>Second section</title>
    <para>This admonition does not have a dbfo-need processing instruction in front of it.</para>
      <para>This one has no dbfo-need in front of it.</para>

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]