Subject: Re: [xsl] Continued Table Headers [fo:marker and fo:retrieve-marker] From: Horace Burke <xmlmarkup@xxxxxxxxx> Date: Tue, 15 May 2007 16:36:36 -0700 (PDT) |
Hi All, I am not sure of the reason why no one responded to my post. May be I am writing something that tell you experts to stay away. Is there any solution or work around in XSL-FO 1.0 for this? XSL-FO 1.1 has "Table Markers" in section 6.13.1.1.2, but I am using Arbortext E3 and Epic Editor 5.1 (uses Saxon 6.5.2) and it does have any implementation for XSL-FO 1.1. Hence, the reason for error messages and processing stops. Please, please let me know if there is any hope here. Thanks in advance for your help! Regards, Horace Burke --- Horace Burke <xmlmarkup@xxxxxxxxx> wrote: > 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 > > ____________________________________________________________________________________Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Continued Table Headers [fo:m, Horace Burke | Thread | Re: [xsl] Continued Table Headers [, G. Ken Holman |
RE: [xsl] The collection() function, Michael Kay | Date | Re: [xsl] Continued Table Headers [, G. Ken Holman |
Month |