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 Olivier <ti...@yahoo.fr> on 2006/02/20 15:19:41 UTC

"conditionality", leaders and page break

Hi,

<fo:table-row>
<fo:table-cell><fo:block text-align-last="justify">my text
<fo:leader leader-alignment="reference-area" leader-pattern="dots"/></fo:block>
</fo:table-cell>
<fo:table-cell><fo:block>bla bla</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block text-align-last="justify">my text
<fo:leader leader-alignment="reference-area" leader-pattern="dots"/></fo:block>
</fo:table-cell>
<fo:table-cell><fo:block>bli bli</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block text-align-last="justify">my other text
<fo:leader leader-alignment="reference-area" leader-pattern="dots"/></fo:block>
</fo:table-cell>
<fo:table-cell><fo:block>blo blo</fo:block></fo:table-cell>
</fo:table-row>
give :
my text...........  bla bla
my text...........  bli bli
my other text.....  blo blo

Now, i would like to not "print" a block content's if the precedent (same
column, row before) is the same, and fill the block only with leaders, except 
in case of page break.

expecting result :
my text...........  bla bla
..................  bli bli
my other text.....  blo blo

expecting result (if page break) :
my text...........  bla bla
<page break>
my text...........  bli bli
my other text.....  blo blo

I programmatically create the FO file (no xslt transformation), so i can let
empty the block of the following row if needed ("conditionality" in FO file
prefer), but how can i do for page break (huge row number) ?

Fop's archive fop-0.91beta-bin-jdk1.4.tar.gz on Mac OS x 10.4.5


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: break-after page

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
This is weird. The bug does not seem to be present in the latest FOP
Trunk anymore, but I can't find any explicit fix for this bug. Would it
be possible for you, Will, to recheck with the latest code from
Subversion?

BTW, I had obviously processed the test case I got in December and added
a test case (block_break-after_2.xml) to our test suite. And this test
miraculously passes right now in FOP Trunk. Hmm.

On 22.02.2006 23:16:53 Jeremias Maerki wrote:
> It rings a bell. I already have a test case sent to me by Dominic
> Brügger, which it seems I have managed to misplace. Sorry, guys! I've
> only just found it again after searching my archive. I'll look into it
> on Friday.
> 
> In the meantime, the work-around is to replace break-after with
> break-before (if that's possible).
> 
> On 22.02.2006 22:30:59 Will Peterson wrote:
> > I'm using the FOP 0.91beta.  Whenever I use the break-after="page" in a
> > block, any document after that point does NOT get rendered after that
> > point.  It inserts the page break and then the rest is gone.  If I
> > render to RTF, the page break is not a problem (but does not appear to
> > be inserted)
> >  
> > For example the following line would cause any XSL below it to be
> > ignored.
> >  
> > <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
> > break-after="page"/>
> >  
> > Any ideas on what is going on here?
> >  
> > Thanks.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: break-after page

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
It rings a bell. I already have a test case sent to me by Dominic
Brügger, which it seems I have managed to misplace. Sorry, guys! I've
only just found it again after searching my archive. I'll look into it
on Friday.

In the meantime, the work-around is to replace break-after with
break-before (if that's possible).

On 22.02.2006 22:30:59 Will Peterson wrote:
> I'm using the FOP 0.91beta.  Whenever I use the break-after="page" in a
> block, any document after that point does NOT get rendered after that
> point.  It inserts the page break and then the rest is gone.  If I
> render to RTF, the page break is not a problem (but does not appear to
> be inserted)
>  
> For example the following line would cause any XSL below it to be
> ignored.
>  
> <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
> break-after="page"/>
>  
> Any ideas on what is going on here?
>  
> Thanks.



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


break-after page

Posted by Will Peterson <wp...@novell.com>.
I'm using the FOP 0.91beta.  Whenever I use the break-after="page" in a
block, any document after that point does NOT get rendered after that
point.  It inserts the page break and then the rest is gone.  If I
render to RTF, the page break is not a problem (but does not appear to
be inserted)
 
For example the following line would cause any XSL below it to be
ignored.
 
<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format"
break-after="page"/>
 
Any ideas on what is going on here?
 
Thanks.

Re: "conditionality", leaders and page break

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
If there's an exception (=error) the partial file will be deleted. If
there are only warnings a "good" PDF will be produced but it may not
fully up to your expectations.

On 20.02.2006 19:28:43 Olivier wrote:
> Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:
> 
> > 
> > I don't think it's possible to do that in XSL-FO. If you could place the
> > text to be repeated on the next page in a static-content you could use
> > marker/retrieve-marker. But since you want this to appear in the first
> > normal content line on a page together with normal content, I think
> > you're out of luck. The only thing you can do is use keep-together on
> > the rows so they don't get broken over multiple pages.
> > 
> 
> Is FOP command line (0.91) always produce a "good" PDF ?
> In error case (minor / major ?) there is no file result, even partial ?



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: "conditionality", leaders and page break

Posted by Olivier <ti...@yahoo.fr>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:

> 
> I don't think it's possible to do that in XSL-FO. If you could place the
> text to be repeated on the next page in a static-content you could use
> marker/retrieve-marker. But since you want this to appear in the first
> normal content line on a page together with normal content, I think
> you're out of luck. The only thing you can do is use keep-together on
> the rows so they don't get broken over multiple pages.
> 

Is FOP command line (0.91) always produce a "good" PDF ?
In error case (minor / major ?) there is no file result, even partial ?


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: "conditionality", leaders and page break

Posted by Olivier <ti...@yahoo.fr>.
Jeremias Maerki <dev <at> jeremias-maerki.ch> writes:

> 
> I don't think it's possible to do that in XSL-FO. If you could place the
> text to be repeated on the next page in a static-content you could use
> marker/retrieve-marker. But since you want this to appear in the first
> normal content line on a page together with normal content, I think
> you're out of luck. The only thing you can do is use keep-together on
> the rows so they don't get broken over multiple pages.
> 

I already use keep-together.
I'm really out of luck :-(

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: "conditionality", leaders and page break

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I don't think it's possible to do that in XSL-FO. If you could place the
text to be repeated on the next page in a static-content you could use
marker/retrieve-marker. But since you want this to appear in the first
normal content line on a page together with normal content, I think
you're out of luck. The only thing you can do is use keep-together on
the rows so they don't get broken over multiple pages.

On 20.02.2006 15:19:41 Olivier wrote:
> Hi,
> 
> <fo:table-row>
> <fo:table-cell><fo:block text-align-last="justify">my text
> <fo:leader leader-alignment="reference-area" leader-pattern="dots"/></fo:block>
> </fo:table-cell>
> <fo:table-cell><fo:block>bla bla</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block text-align-last="justify">my text
> <fo:leader leader-alignment="reference-area" leader-pattern="dots"/></fo:block>
> </fo:table-cell>
> <fo:table-cell><fo:block>bli bli</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block text-align-last="justify">my other text
> <fo:leader leader-alignment="reference-area" leader-pattern="dots"/></fo:block>
> </fo:table-cell>
> <fo:table-cell><fo:block>blo blo</fo:block></fo:table-cell>
> </fo:table-row>
> give :
> my text...........  bla bla
> my text...........  bli bli
> my other text.....  blo blo
> 
> Now, i would like to not "print" a block content's if the precedent (same
> column, row before) is the same, and fill the block only with leaders, except 
> in case of page break.
> 
> expecting result :
> my text...........  bla bla
> ..................  bli bli
> my other text.....  blo blo
> 
> expecting result (if page break) :
> my text...........  bla bla
> <page break>
> my text...........  bli bli
> my other text.....  blo blo
> 
> I programmatically create the FO file (no xslt transformation), so i can let
> empty the block of the following row if needed ("conditionality" in FO file
> prefer), but how can i do for page break (huge row number) ?
> 
> Fop's archive fop-0.91beta-bin-jdk1.4.tar.gz on Mac OS x 10.4.5



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org