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 Yann Verlynde <yv...@oxade.com> on 2002/11/15 17:32:06 UTC
Problem with fo:marker
Hello,
I have some trouble with fo:marker. The String that I want to write on the
top of my page when my text in on 2 pages minimum does not work.
I see it on the first page but not on the second.
Does anyone can help me?
This is my code in my static-content
<fo:static-content flow-name="xsl-region-before">
<fo:block-container absolute-position="absolute" top="50mm">
<fo:block>
<fo:retrieve-marker retrieve-class-name="sexe-M"
retrieve-position="first-including-carryover" retrieve-boundary="page">
M
</fo:retrieve-marker>
</fo:block>
</fo:block-container>
<fo:block-container absolute-position="absolute" top="50mm">
<fo:block>
<fo:retrieve-marker retrieve-class-name="sexe-F"
retrieve-position="first-including-carryover" retrieve-boundary="page">
F
</fo:retrieve-marker>
</fo:block>
</fo:block-container>
...
and in the body I use:
<fo:table-row font-size="9pt" line-height="16pt">
<fo:table-cell>
<fo:block>
<fo:marker marker-class-name="sexe">
<xsl:value-of select="./sexe"/>
</fo:marker>
</fo:block>
<fo:block keep-with-next="always" text-align="center"> <xsl:value-of
select="./sexe"/>
</fo:block>
</fo:table-cell>
...
Re: Problem with fo:marker
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Yann Verlynde wrote:
> I have some trouble with fo:marker. The String that I want to write on the
> top of my page when my text in on 2 pages minimum does not work.
> I see it on the first page but not on the second.
> Does anyone can help me?
>
> This is my code in my static-content
> <fo:static-content flow-name="xsl-region-before">
<fo:block-container absolute-position="absolute" top="50mm">
> <fo:block>
> <fo:retrieve-marker retrieve-class-name="sexe-M"
> retrieve-position="first-including-carryover" retrieve-boundary="page">
> M
> </fo:retrieve-marker>
Here is a mistake - <fo:retrieve-marker> object must have no content,
it's just a counterpart of <fo:marker>, which *retrieves* a marker value
and therefore it doesn't have its own value.
> <fo:retrieve-marker retrieve-class-name="sexe-F"
> retrieve-position="first-including-carryover" retrieve-boundary="page">
>
> F
>
> </fo:retrieve-marker>
The same mistake.
The main idea underneath is pretty simple - you define a marker of one
class at your table cells, having content either M or ? and in static
content you just retrieves the marker of this class.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel