You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Cheri Dennison <ch...@amazon.com> on 2008/08/20 02:13:53 UTC
Long text inclusions that don't break anymore with FOP 0.95
Howdy!
I'm upgrading to FOP 0.95 from 0.20.5 and from 1.70.1 to 1.74 for the
DocBook stylesheets. I’ve got a guide that has code snippets xincluded, like
so (from Bob Stayton's section “Using XInclude for text inclusions”):
<example><title>My program listing</title>
<programlisting><xi:include href="mycode.c" parse="text"
xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
</example>
With FOP 0.95/1.74.0 stylesheets, any long code snippets that normally break
correctly across multiple pages no longer occupy multiple pages. Instead,
the code snippet tries to be on a single PDF page (bleeding into the
header/footer). If it’s longer than the full page, the top part and bottom
part of the snippet gets cut off and is not displayed. If I just copy the
code directly into the XML instead of xincluding it, it breaks fine across
pages as expected.
Is this issue with Xincluded code snippets a known problem? Is there
anything I can do about it? My apologies if this has been discussed; I tried
looking in the archives and had no luck.
Muchas muchas gracias!
cheri
--
View this message in context: http://www.nabble.com/Long-text-inclusions-that-don%27t-break-anymore-with-FOP-0.95-tp19060981p19060981.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Long text inclusions that don't break anymore with FOP 0.95
Posted by Cheri Dennison <ch...@amazon.com>.
Right you are. I cross-posted and got an answer. It's a DocBook thing
involving keeping contents of the DocBook <example> tag all on one page.
Actually a feature, not a bug, with a workaround.
Thanks!
J.Pietschmann wrote:
>
> Cheri Dennison wrote:
>> I'm upgrading to FOP 0.95 from 0.20.5 and from 1.70.1 to 1.74 for the
>> DocBook stylesheets.
> [snip]
>> With FOP 0.95/1.74.0 stylesheets, any long code snippets that normally
>> break
>> correctly across multiple pages no longer occupy multiple pages. Instead,
>> the code snippet tries to be on a single PDF page (bleeding into the
>> header/footer). If it’s longer than the full page, the top part and
>> bottom
>> part of the snippet gets cut off and is not displayed. If I just copy the
>> code directly into the XML instead of xincluding it, it breaks fine
>> across
>> pages as expected.
>
> This is most likely a problem with the DocBook processing, maybe in
> combination with changes in the behavior of FOP. I vaguely remember
> you'll have to set some DocBook customizations in order to adapt the
> DocBook processing to the latest FOP release.
>
> You are more likely to get an answer if you ask on the docbook-apps
> list.
>
> J.Pietschmann
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Long-text-inclusions-that-don%27t-break-anymore-with-FOP-0.95-tp19060981p19089779.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Long text inclusions that don't break anymore with FOP 0.95
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Cheri Dennison wrote:
> I'm upgrading to FOP 0.95 from 0.20.5 and from 1.70.1 to 1.74 for the
> DocBook stylesheets.
[snip]
> With FOP 0.95/1.74.0 stylesheets, any long code snippets that normally break
> correctly across multiple pages no longer occupy multiple pages. Instead,
> the code snippet tries to be on a single PDF page (bleeding into the
> header/footer). If it’s longer than the full page, the top part and bottom
> part of the snippet gets cut off and is not displayed. If I just copy the
> code directly into the XML instead of xincluding it, it breaks fine across
> pages as expected.
This is most likely a problem with the DocBook processing, maybe in
combination with changes in the behavior of FOP. I vaguely remember
you'll have to set some DocBook customizations in order to adapt the
DocBook processing to the latest FOP release.
You are more likely to get an answer if you ask on the docbook-apps
list.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org