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: Re: [docbook-apps] Edge case with dbfo-need


Hi Benjamin,

Thanks for checking this out. Looks like it might be an XEP problem. I'll have to get the latest FOP and give it a try.

Best regards,
Dick
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
hamilton@xmlpress.net



On Apr 2, 2015, at 0:07, Kallauch, Benjamin (EEIN) <benjamin.kallauch2@volkswagen.de> wrote:

> 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.
> 
> regards,
> Benjamin
> 
> 
> -----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
> http://xmlpress.net
> hamilton@xmlpress.net
> 
> ================ 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"?>
>    <warning>
>      <para>This one has a dbfo-need in front of it.</para>
>    </warning>
>  </section>
>  <section>
>    <title>Second section</title>
>    <para>This admonition does not have a dbfo-need processing instruction in front of it.</para>
>    <warning>
>      <para>This one has no dbfo-need in front of it.</para>
>    </warning>
>  </section>
> </article>
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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]