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 k deepthi <kd...@yahoo.co.in> on 2009/10/26 08:38:47 UTC

hide in XSL-FO

Hi Team,
I have a requirement to display Contd...text�at the footer, if the table data overflows to the next page. But when I am setting <fo:table-footer> with text Contd..., it is displaying the same thing at the footer even if table data is ended. Please suggest me how to specify a footer that will not repeat at the end of table content. Also find the attachment�for the footer issue.
�
�
Regards
Deepthi.


      Add whatever you love to the Yahoo! India homepage. Try now! http://in.yahoo.com/trynew

Re: AW: AW: hide in XSL-FO

Posted by k deepthi <kd...@yahoo.co.in>.
Hi Georg,
Thanku for your quick response. I will try this and get back to you.
 
Regards
Deepthi.

--- On Mon, 26/10/09, Georg Datterl <ge...@geneon.de> wrote:


From: Georg Datterl <ge...@geneon.de>
Subject: AW: AW: hide <fo:table-footer> in XSL-FO
To: fop-users@xmlgraphics.apache.org
Date: Monday, 26 October, 2009, 2:46 PM


Hi Deepthi, 

Actually, my code already contains the marker. Just add your table between the markers, where I put an empty <table> tag and enjoy.

    <fo:block line-height="14pt" space-after="8.504pt"> <-- Here starts the whole block. Any break in this block should generate a Contd-Text 
        <fo:block line-height="8pt" keep-with-next.within-page="always" keep-with-next.within-column="always"> <-- Needed to keep the marker on the same page as the content
            <fo:marker marker-class-name="DT-continued"> <-- Here starts the first marker
                <fo:block line-height="8pt" text-indent="127.559pt"> <-- It contains a block with the text Contd...
                    <fo:inline font-family="arial unicode ms" font-size="8pt" line-height="8pt">Contd...</fo:inline>
                </fo:block>
            </fo:marker> <-- End of the first marker
        </fo:block> 
        <fo:table /> <-- Here is your page content. Table, List, whatever
        <fo:block keep-with-previous.within-page="always" keep-with-previous.within-column="always"> <-- Again a block to keep on the same page
            <fo:marker marker-class-name="DT-continued"> <-- Here starts your second marker
                <fo:block/> <-- The marker is empty
            </fo:marker>
        </fo:block>
    </fo:block>

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: k deepthi [mailto:kdeepsmca@yahoo.co.in] 
Gesendet: Montag, 26. Oktober 2009 10:09
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: hide <fo:table-footer> in XSL-FO

Hi Georg,
I dint understand the code where I have to specify to stop Contd..Can you specify the marker in <fo:table> like..
<fo:table>
......
<fo:table-body>
....
...</fo:table-body>
</fo:table>

Only in <fo:table-cell>s we use blocks.

Thanks
Deepthi.

--- On Mon, 26/10/09, Georg Datterl <ge...@geneon.de> wrote:



    From: Georg Datterl <ge...@geneon.de>
    Subject: AW: hide <fo:table-footer> in XSL-FO
    To: fop-users@xmlgraphics.apache.org
    Date: Monday, 26 October, 2009, 2:20 PM
    
    
    Hi Deepthi,
    
    It's me again. :-) Table footer is not quite the correct component. What you really would like are table-marker. But table marker is not implemented, so what you can use is an ordinary marker to place the "Contd..." in the page footer. Basically what you do is: At the beginning of your table, you define a marker saying "Contd...". At the end of your table you define an empty marker. In your footer you retrieve the last marker on the page. If the table is completely on the page, the last marker is empty, otherwise you get the "Contd..." marker. Take care you don't run into a page break between your content and your marker. I had a situation where the last visible content was on the first page, but the marker block was on the second page which resulted in the wrong marker being displayed. 
    
    Example for table with "Contd..." text:
    
    <fo:block line-height="14pt" space-after="8.504pt">
        <fo:block line-height="8pt" keep-with-next.within-page="always" keep-with-next.within-column="always">
            <fo:marker marker-class-name="DT-continued">
                <fo:block line-height="8pt" text-indent="127.559pt">
                    <fo:inline font-family="arial unicode ms" font-size="8pt" line-height="8pt">Contd...</fo:inline>
                </fo:block>
            </fo:marker>
        </fo:block>
        <fo:table />
        <fo:block keep-with-previous.within-page="always" keep-with-previous.within-column="always">
            <fo:marker marker-class-name="DT-continued">
                <fo:block/>
            </fo:marker>
        </fo:block>
    </fo:block>
    
    Example for footer:
    
    <fo:static-content flow-name="left_page_01footer">
        <fo:block-container absolute-position="absolute" left="37.984pt">
            <fo:block>
                <fo:retrieve-marker retrieve-class-name="DT-continued" retrieve-position="last-starting-within-page"/>
            </fo:block>
        </fo:block-container>
    </fo:static-content>
    
    
    Mit freundlichen Grüßen
    
    Georg Datterl
    
    ------ Kontakt ------
    
    Georg Datterl
    
    Geneon media solutions gmbh
    Gutenstetter Straße 8a
    90449 Nürnberg
    
    HRB Nürnberg: 17193
    Geschäftsführer: Yong-Harry Steiert 
    
    Tel.: 0911/36 78 88 - 26
    Fax: 0911/36 78 88 - 20
    
    www.geneon.de
    
    Weitere Mitglieder der Willmy MediaGroup:
    
    IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
    Willmy PrintMedia GmbH:                            www.willmy.de
    Willmy Consult & Content GmbH:                 www.willmycc.de 
    -----Ursprüngliche Nachricht-----
    Von: k deepthi [mailto:kdeepsmca@yahoo.co.in <ht...@yahoo.co.in> ] 
    Gesendet: Montag, 26. Oktober 2009 08:39
    An: FOP Users
    Betreff: hide <fo:table-footer> in XSL-FO
    
    Hi Team,
    I have a requirement to display Contd...text at the footer, if the table data overflows to the next page. But when I am setting <fo:table-footer> with text Contd..., it is displaying the same thing at the footer even if table data is ended. Please suggest me how to specify a footer that will not repeat at the end of table content. Also find the attachment for the footer issue.
    
    
    Regards
    Deepthi.
    
    ________________________________
    
    Connect more, do more and share more with Yahoo! India Mail. Learn more <http://in.rd.yahoo.com/tagline_galaxy_3/*http://in.overview.mail.yahoo.com/> .
    
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org <ht...@xmlgraphics.apache.org> 
    For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org <ht...@xmlgraphics.apache.org> 
    
    


________________________________

Add whatever you love to the Yahoo! India homepage. Try now! <http://in.rd.yahoo.com/tagline_metro_3/*http://in.yahoo.com/trynew> 

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




      Yahoo! India has a new look. Take a sneak peek http://in.yahoo.com/trynew

AW: AW: hide in XSL-FO

Posted by Georg Datterl <ge...@geneon.de>.
Hi Deepthi, 

Actually, my code already contains the marker. Just add your table between the markers, where I put an empty <table> tag and enjoy.

	<fo:block line-height="14pt" space-after="8.504pt"> <-- Here starts the whole block. Any break in this block should generate a Contd-Text 
	    <fo:block line-height="8pt" keep-with-next.within-page="always" keep-with-next.within-column="always"> <-- Needed to keep the marker on the same page as the content
	        <fo:marker marker-class-name="DT-continued"> <-- Here starts the first marker
	            <fo:block line-height="8pt" text-indent="127.559pt"> <-- It contains a block with the text Contd...
	                <fo:inline font-family="arial unicode ms" font-size="8pt" line-height="8pt">Contd...</fo:inline>
	            </fo:block>
	        </fo:marker> <-- End of the first marker
	    </fo:block> 
	    <fo:table /> <-- Here is your page content. Table, List, whatever
	    <fo:block keep-with-previous.within-page="always" keep-with-previous.within-column="always"> <-- Again a block to keep on the same page
	        <fo:marker marker-class-name="DT-continued"> <-- Here starts your second marker
	            <fo:block/> <-- The marker is empty
	        </fo:marker>
	    </fo:block>
	</fo:block>

Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: k deepthi [mailto:kdeepsmca@yahoo.co.in] 
Gesendet: Montag, 26. Oktober 2009 10:09
An: fop-users@xmlgraphics.apache.org
Betreff: Re: AW: hide <fo:table-footer> in XSL-FO

Hi Georg,
I dint understand the code where I have to specify to stop Contd..Can you specify the marker in <fo:table> like..
<fo:table>
......
<fo:table-body>
....
...</fo:table-body>
</fo:table>
 
Only in <fo:table-cell>s we use blocks.
 
Thanks
Deepthi.

--- On Mon, 26/10/09, Georg Datterl <ge...@geneon.de> wrote:



	From: Georg Datterl <ge...@geneon.de>
	Subject: AW: hide <fo:table-footer> in XSL-FO
	To: fop-users@xmlgraphics.apache.org
	Date: Monday, 26 October, 2009, 2:20 PM
	
	
	Hi Deepthi,
	
	It's me again. :-) Table footer is not quite the correct component. What you really would like are table-marker. But table marker is not implemented, so what you can use is an ordinary marker to place the "Contd..." in the page footer. Basically what you do is: At the beginning of your table, you define a marker saying "Contd...". At the end of your table you define an empty marker. In your footer you retrieve the last marker on the page. If the table is completely on the page, the last marker is empty, otherwise you get the "Contd..." marker. Take care you don't run into a page break between your content and your marker. I had a situation where the last visible content was on the first page, but the marker block was on the second page which resulted in the wrong marker being displayed. 
	
	Example for table with "Contd..." text:
	
	<fo:block line-height="14pt" space-after="8.504pt">
	    <fo:block line-height="8pt" keep-with-next.within-page="always" keep-with-next.within-column="always">
	        <fo:marker marker-class-name="DT-continued">
	            <fo:block line-height="8pt" text-indent="127.559pt">
	                <fo:inline font-family="arial unicode ms" font-size="8pt" line-height="8pt">Contd...</fo:inline>
	            </fo:block>
	        </fo:marker>
	    </fo:block>
	    <fo:table />
	    <fo:block keep-with-previous.within-page="always" keep-with-previous.within-column="always">
	        <fo:marker marker-class-name="DT-continued">
	            <fo:block/>
	        </fo:marker>
	    </fo:block>
	</fo:block>
	
	Example for footer:
	
	<fo:static-content flow-name="left_page_01footer">
	    <fo:block-container absolute-position="absolute" left="37.984pt">
	        <fo:block>
	            <fo:retrieve-marker retrieve-class-name="DT-continued" retrieve-position="last-starting-within-page"/>
	        </fo:block>
	    </fo:block-container>
	</fo:static-content>
	
	
	Mit freundlichen Grüßen
	
	Georg Datterl
	
	------ Kontakt ------
	
	Georg Datterl
	
	Geneon media solutions gmbh
	Gutenstetter Straße 8a
	90449 Nürnberg
	
	HRB Nürnberg: 17193
	Geschäftsführer: Yong-Harry Steiert 
	
	Tel.: 0911/36 78 88 - 26
	Fax: 0911/36 78 88 - 20
	
	www.geneon.de
	
	Weitere Mitglieder der Willmy MediaGroup:
	
	IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
	Willmy PrintMedia GmbH:                            www.willmy.de
	Willmy Consult & Content GmbH:                 www.willmycc.de 
	-----Ursprüngliche Nachricht-----
	Von: k deepthi [mailto:kdeepsmca@yahoo.co.in <ht...@yahoo.co.in> ] 
	Gesendet: Montag, 26. Oktober 2009 08:39
	An: FOP Users
	Betreff: hide <fo:table-footer> in XSL-FO
	
	Hi Team,
	I have a requirement to display Contd...text at the footer, if the table data overflows to the next page. But when I am setting <fo:table-footer> with text Contd..., it is displaying the same thing at the footer even if table data is ended. Please suggest me how to specify a footer that will not repeat at the end of table content. Also find the attachment for the footer issue.
	
	
	Regards
	Deepthi.
	
	________________________________
	
	Connect more, do more and share more with Yahoo! India Mail. Learn more <http://in.rd.yahoo.com/tagline_galaxy_3/*http://in.overview.mail.yahoo.com/> .
	
	---------------------------------------------------------------------
	To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org <ht...@xmlgraphics.apache.org> 
	For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org <ht...@xmlgraphics.apache.org> 
	
	


________________________________

Add whatever you love to the Yahoo! India homepage. Try now! <http://in.rd.yahoo.com/tagline_metro_3/*http://in.yahoo.com/trynew> 

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


Re: AW: hide in XSL-FO

Posted by k deepthi <kd...@yahoo.co.in>.
Hi Georg,
I dint understand the code where I have to specify to stop Contd..Can you specify the marker in <fo:table> like..
<fo:table>
......
<fo:table-body>
....
...</fo:table-body>
</fo:table>
 
Only in <fo:table-cell>s we use blocks.
 
Thanks
Deepthi.

--- On Mon, 26/10/09, Georg Datterl <ge...@geneon.de> wrote:


From: Georg Datterl <ge...@geneon.de>
Subject: AW: hide <fo:table-footer> in XSL-FO
To: fop-users@xmlgraphics.apache.org
Date: Monday, 26 October, 2009, 2:20 PM


Hi Deepthi,

It's me again. :-) Table footer is not quite the correct component. What you really would like are table-marker. But table marker is not implemented, so what you can use is an ordinary marker to place the "Contd..." in the page footer. Basically what you do is: At the beginning of your table, you define a marker saying "Contd...". At the end of your table you define an empty marker. In your footer you retrieve the last marker on the page. If the table is completely on the page, the last marker is empty, otherwise you get the "Contd..." marker. Take care you don't run into a page break between your content and your marker. I had a situation where the last visible content was on the first page, but the marker block was on the second page which resulted in the wrong marker being displayed. 

Example for table with "Contd..." text:

<fo:block line-height="14pt" space-after="8.504pt">
    <fo:block line-height="8pt" keep-with-next.within-page="always" keep-with-next.within-column="always">
        <fo:marker marker-class-name="DT-continued">
            <fo:block line-height="8pt" text-indent="127.559pt">
                <fo:inline font-family="arial unicode ms" font-size="8pt" line-height="8pt">Contd...</fo:inline>
            </fo:block>
        </fo:marker>
    </fo:block>
    <fo:table />
    <fo:block keep-with-previous.within-page="always" keep-with-previous.within-column="always">
        <fo:marker marker-class-name="DT-continued">
            <fo:block/>
        </fo:marker>
    </fo:block>
</fo:block>

Example for footer:

<fo:static-content flow-name="left_page_01footer">
    <fo:block-container absolute-position="absolute" left="37.984pt">
        <fo:block>
            <fo:retrieve-marker retrieve-class-name="DT-continued" retrieve-position="last-starting-within-page"/>
        </fo:block>
    </fo:block-container>
</fo:static-content>


Mit freundlichen Grüßen

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: k deepthi [mailto:kdeepsmca@yahoo.co.in] 
Gesendet: Montag, 26. Oktober 2009 08:39
An: FOP Users
Betreff: hide <fo:table-footer> in XSL-FO

Hi Team,
I have a requirement to display Contd...text at the footer, if the table data overflows to the next page. But when I am setting <fo:table-footer> with text Contd..., it is displaying the same thing at the footer even if table data is ended. Please suggest me how to specify a footer that will not repeat at the end of table content. Also find the attachment for the footer issue.


Regards
Deepthi.

________________________________

Connect more, do more and share more with Yahoo! India Mail. Learn more <http://in.rd.yahoo.com/tagline_galaxy_3/*http://in.overview.mail.yahoo.com/> .

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




      Keep up with people you care about with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/connectmore

AW: hide in XSL-FO

Posted by Georg Datterl <ge...@geneon.de>.
Hi Deepthi,

It's me again. :-) Table footer is not quite the correct component. What you really would like are table-marker. But table marker is not implemented, so what you can use is an ordinary marker to place the "Contd..." in the page footer. Basically what you do is: At the beginning of your table, you define a marker saying "Contd...". At the end of your table you define an empty marker. In your footer you retrieve the last marker on the page. If the table is completely on the page, the last marker is empty, otherwise you get the "Contd..." marker. Take care you don't run into a page break between your content and your marker. I had a situation where the last visible content was on the first page, but the marker block was on the second page which resulted in the wrong marker being displayed. 

Example for table with "Contd..." text:

<fo:block line-height="14pt" space-after="8.504pt">
	<fo:block line-height="8pt" keep-with-next.within-page="always" keep-with-next.within-column="always">
		<fo:marker marker-class-name="DT-continued">
			<fo:block line-height="8pt" text-indent="127.559pt">
				<fo:inline font-family="arial unicode ms" font-size="8pt" line-height="8pt">Contd...</fo:inline>
			</fo:block>
		</fo:marker>
	</fo:block>
	<fo:table />
	<fo:block keep-with-previous.within-page="always" keep-with-previous.within-column="always">
		<fo:marker marker-class-name="DT-continued">
			<fo:block/>
		</fo:marker>
	</fo:block>
</fo:block>

Example for footer:

<fo:static-content flow-name="left_page_01footer">
	<fo:block-container absolute-position="absolute" left="37.984pt">
		<fo:block>
			<fo:retrieve-marker retrieve-class-name="DT-continued" retrieve-position="last-starting-within-page"/>
		</fo:block>
	</fo:block-container>
</fo:static-content>


Mit freundlichen Grüßen
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: k deepthi [mailto:kdeepsmca@yahoo.co.in] 
Gesendet: Montag, 26. Oktober 2009 08:39
An: FOP Users
Betreff: hide <fo:table-footer> in XSL-FO

Hi Team,
I have a requirement to display Contd...text at the footer, if the table data overflows to the next page. But when I am setting <fo:table-footer> with text Contd..., it is displaying the same thing at the footer even if table data is ended. Please suggest me how to specify a footer that will not repeat at the end of table content. Also find the attachment for the footer issue.
 
 
Regards
Deepthi.

________________________________

Connect more, do more and share more with Yahoo! India Mail. Learn more <http://in.rd.yahoo.com/tagline_galaxy_3/*http://in.overview.mail.yahoo.com/> .

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