Hi All,
I am having some difficulties getting a "Continued" text to display only
on the second occurrence of table headers in PDF output using XSL-FO. It
is currently displaying on the first occurrence as well as the second. I
am using fo:marker and fo:retrieve-marker; snippets of the XSL are below.
I delve through the archive and examples brought me this close to having
it working correctly. Initially, it was displaying in the page
"region-start" and as I mentioned, examples from the archive helped me to
get it displaying in the table header.
Can anyone see what I am doing wrong?
Thanks in advance for your help, I really appreciate it!
Regards,
Horace
<xsl:for-each select="chapter">
<fo:page-sequence master-reference="chap-page">
<!--<fo:static-content flow-name="continued">-->
<fo:static-content flow-name="page-headings">
<fo:retrieve-marker retrieve-class-name="page-headings"
retrieve-position="first-including-carryover" retrieve-boundary="page" />
<!--<xsl:if test="not(position()=last())"></xsl:if>-->
<fo:marker marker-class-name="cont-mkr">
<fo:retrieve-marker retrieve-class-name="continued"
retrieve-position="last-ending-within-page" retrieve-boundary="page" />
</fo:marker>
</fo:static-content>
<fo:flow flow-name="Chap-page-body">
...
<fo:block>
<xsl:apply-templates select="RegulatoryInfo"/>
</fo:block>
...
</fo:flow>
</fo:page-sequence>
</xsl:for-each>
<xsl:template match="RegulatoryInfo">
<fo:table-and-caption space-before="1.5em">
<fo:table border-style="solid" border-width="1pt">
<fo:table-header>
<fo:table-row>
<fo:table-cell text-align="center" border-style="solid"
border-width="1.5pt" border-bottom="1.5pt" border-left="1.5pt"
border-right="1.5pt" padding-top="2.5mm" padding-bottom="2.5mm"
number-columns-spanned="7">
<fo:block font-weight="bolder">
<xsl:apply-templates select="title" mode="TitleFontSize14"/>
<fo:retrieve-marker retrieve-class-name="continued"
retrieve-position="last-ending-within-page" retrieve-boundary="page" />
</fo:block><!--Section 15 Title-->
</fo:table-cell>
</fo:table-row>
</fo:table-header>
...
</fo:table>
</fo:table-and-caption>
</xsl:template>
<xsl:template match="title" mode="TitleFontSize14" priority="1">
<xsl:choose>
<xsl:when test="parent::ProdInfo | parent::RegulatoryInfo |
parent::CvrTransportInfo | parent::OtherInfo">
<fo:block font-weight="bolder" font-size="14pt" space-after="2.4mm"
text-align="center">
<xsl:choose>
<xsl:when test="@noTrans='yes'">
<fo:inline color="#0000FF">
<xsl:apply-templates/>
</fo:inline>
</xsl:when>
<xsl:when test="@change='yes'">
<fo:inline color="#FF0000">
<xsl:apply-templates/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="position() = last()">
<fo:marker marker-class-name="continued">
<fo:block font-weight="bolder">
<!--<xsl:apply-templates/>--> Table continued...HERE
</fo:block>
</fo:marker>
</xsl:if>
</fo:block>
</xsl:when>
</xsl:choose>
</xsl:template>
____________________________________________________________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--