You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by siarom egrub <eg...@yahoo.com> on 2006/01/04 19:01:03 UTC
Using fo:marker and fo:retrieve-marker
Hi All!
I am having an enormous problematic time trying to get
fo:marker and fo:retrieve-marker to work correctly in
some tables that continued to a second page. I have
reviewed several examples and it still doesnt click.
Maybe too much holiday time off!
The "(Continued)" text is displaying on the first
occurrence of the table title as well as the second.
It should only be displayed on the second occurrence.
I have included the XSL snippet below.
I really appreciate any help in you can offer. Thanks
in advance for your help!
S.E.
<fo:flow flow-name="xsl-region-body"
font-family="Arial">
<fo:block>
<fo:marker marker-class-name="cont">
<fo:inline>(Continued)</fo:inline>
</fo:marker>
</fo:block>
...
</fo:flow>
<fo:table-and-caption space-before="2em">
<fo:table table-layout="fixed" width="100%">
<fo:table-header>
<fo:table-row>
<fo:table-cell border-style="solid"
border-width="1.5pt" border-bottom="1.5pt"
border-left="1.5pt"
border-right="1.5pt" padding-top="1pt"
padding-bottom="1pt" font-size="24pt"
text-align="center"
number-columns-spanned="7">
<fo:block font-weight="bold">
<xsl:value-of select="title"/>
</fo:block><!--Section 4 Title -->
<fo:block line-height="0pt">
<fo:retrieve-marker
retrieve-position="last-starting-within-page"
retrieve-class-name="cont"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
...
</fo:table>
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
Re: Using fo:marker and fo:retrieve-marker
Posted by Chris Bowditch <bo...@hotmail.com>.
siarom egrub wrote:
> Hi All!
>
> I am having an enormous problematic time trying to get
> fo:marker and fo:retrieve-marker to work correctly in
> some tables that continued to a second page. I have
> reviewed several examples and it still doesn’t click.
> Maybe too much holiday time off!
>
> The "(Continued)" text is displaying on the first
> occurrence of the table title as well as the second.
> It should only be displayed on the second occurrence.
> I have included the XSL snippet below.
>
> I really appreciate any help in you can offer. Thanks
> in advance for your help!
It's difficult to see what is wrong from the small snippet you posted.
Although I don't see a table in the flow, only in static content? To
achieve what you ask for, I suggest that you set the marker in every row
in the table within the flow. The value in the first row should be kept
blank, and then every subsequent marker value should be "(Continued)"
Make sure you use retrieve-boundary="page" and
retrieve-position="first-starting-within-page" to retrieve the marker in
static content
Chris
BTW, this question should really have been posted to the fop-user list.
The fop-dev list is for discussing FOP's Java internals.
<snip/>