[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Continued Table Headers [fo:marker and fo:retrieve-ma

Subject: Continued Table Headers [fo:marker and fo:retrieve-marker]
From: Horace Burke <xmlmarkup@xxxxxxxxx>
Date: Tue, 8 May 2007 09:25:46 -0700 (PDT)
 Continued Table Headers [fo:marker and  fo:retrieve-ma
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.