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 Zachary Kaufman <zb...@yahoo.com> on 2002/10/04 07:11:07 UTC

Marker question

This functionality is probably wishful thinking, but here it goes...

I have an index of company names.  The first letter of the last company on each index page needs to appear in the page's header.  The first letter is an attribute of the company name XML element.  Is there any way of having the letter show in the page header, but not in the body region alongside its associated company?

Thanks,

--Zachary--

 



---------------------------------
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!

RE: Marker question

Posted by Roland Neilands <rn...@pulsemining.com.au>.
Zachary,

> This functionality is probably wishful thinking, but here it goes...
Not at all.

> I have an index of company names.  The first letter of the last company on > each index page needs to appear in the page's header.  The first letter is > an attribute of the company name XML element.  Is there any way of having
> the letter show in the page header, but not in the body region alongside 
> its associated company?


On each company row, set the marker (in it's own block with correct font etc formatting):
<fo:marker marker-class-name="lastcoy"><xsl:value-of select="@coy"/></fo:marker>

In the region-before static-content 
<fo:retrieve-marker retrieve-class-name="lastcoy"
                    retrieve-boundary="page"
                    retrieve-position="last-ending-within-page"/>

Change the attribute select appropriately. Check docs/examples/markers/glossary.xsl for context.

Cheers,
Roland