Loading ...
Sorry, an error occurred while loading the content.
Skip to search.

6336Re: Continued titles

Expand Messages
  • Carolyn
    Mar 31, 2005
      Just wanted to check again -- does anyone think this problem is fixable?

      --- In XSL-FO@yahoogroups.com, "Carolyn" <coliver@o...> wrote:
      >
      > I've tried about everything I can think of and I admit, I'm not as
      > educated in XSL:FO as I'd like to be but I'm hoping someone can help
      > me with this...
      >
      > I have instances that titles (table, paragraph, etc.) need to appear
      > as 'Title - Continued' if the information extends on the next page. I
      > have the titles continuing correctly but I can't figure how to move
      > the margin for these type of pages down to allow for the continued
      > title. Currently the table (for example) text is printing on top of
      > the 'Title - Contined'.
      >
      > I'm using Antenna House to transform my XML and here's some pertinent
      > information from my XSL:FO:
      >
      > ______________________________
      >
      > ROOT INFORMATION --
      >
      > <xsl:template match="/">
      > <fo:root>
      > <fo:layout-master-set>
      > <fo:simple-page-master master-name="firstpage"
      > page-height="297mm" page-width="210mm" margin-top="11mm"
      > margin-bottom="12mm" margin-left="25mm" margin-right="15mm">
      > <fo:region-body margin-top="21mm"
      > margin-bottom="22mm"/>
      > <fo:region-before extent="28mm" di
      > splay-align="before"/>
      > <fo:region-after region-name="first" extent="29mm"
      > display-align="after"/>
      > </fo:simple-page-master>
      > <fo:simple-page-master master-name="restpage"
      > page-height="297mm" page-width="210mm" margin-top="11mm"
      > margin-bottom="12mm" margin-left="25mm" margin-right="15mm">
      > <fo:region-body margin-top="21mm"
      > margin-bottom="22mm"/>
      > <fo:region-before extent="28mm" di
      > splay-align="before"/>
      > <fo:region-after region-name="rest" extent="29mm"
      > display-align="after"/>
      > </fo:simple-page-master>
      > <fo:simple-page-master master-name="lastpage"
      > page-height="297mm" page-width="210mm" margin-top="11mm"
      > margin-bottom="12mm" margin-left="25mm" margin-right="15mm">
      > <fo:region-body margin-top="21mm"
      > margin-bottom="22mm"/>
      > <fo:region-before extent="28mm" di
      > splay-align="before"/>
      > <fo:region-after region-name="last" extent="29mm"
      > display-align="after"/>
      > </fo:simple-page-master>
      > <fo:page-sequence-master master-name="document">
      > <fo:repeatable-page-master-alternatives>
      > <fo:conditional-page-master-reference
      > page-position="last" master-reference="lastpage"/>
      > <fo:conditional-page-master-reference
      > page-position="rest" master-reference="restpage"/>
      > <fo:conditional-page-master-reference
      > page-position="first" master-reference="firstpage"/>
      > </fo:repeatable-page-master-alternatives>
      > </fo:page-sequence-master>
      > </fo:layout-master-set>
      > <fo:page-sequence master-reference="document" language="en"
      > line-height="1.15em" font-family="sans-serif" font-size="10pt"
      > hyphenate="true">
      > <fo:static-content flow-name="xsl-region-before">
      > <fo:block font-weight="bold" text-
      > align-last="justify">
      > <fo:external-graphic content-width="6%"
      > src="Logo_BW.gif"/>
      > <fo:leader leader-pattern="space"/>
      > <xsl:text>Header Here</xsl:text>
      > </fo:block>
      > <fo:block border-after-style="solid"
      > border-after-width="0.5pt" space-before="1mm"/>
      > <fo:block-container margin-top="4mm"
      > display-align="after" block-progression-dimension="15%"> <!-- gives me
      > the space before a continued table head -->
      > <fo:block font-size="10pt">
      > <fo:retrieve-marker
      > retrieve-class-name="issue-table-header"
      > retrieve-position="first-starting-within-page"/>
      > </fo:block>
      > </fo:block-container>
      > </fo:static-content>
      > <fo:static-content flow-name="first" region-name="first">
      > <fo:block border-before-style="solid"
      > border-before-width="0.5pt" space-after="2mm"/>
      > <fo:block text-align-last="justify">Left
      > footer<xsl:value-of select="model"/>
      > <fo:leader leader-pattern="space"/>
      > <fo:wrapper font-weight="bold"><xsl:value-of
      > select="$variablehere"/>
      > </fo:wrapper>
      > </fo:block>
      > <fo:block text-align="right" font-weight="bold">
      > <xsl:text>Chap Here</xsl:text>
      > </fo:block>
      > <fo:block text-align="right" font-weight="bold">
      > <fo:leader leader-pattern="space" leader-length="20%"/>
      > <xsl:value-of
      > select="//issdate/@year"/>-<xsl:value-of
      > select="//issdate/@month"/>-<xsl:value-of select="//issdate/@day"/>
      > Page <fo:page-number/>
      > </fo:block>
      > </fo:static-content>
      > <fo:static-content flow-name="last" region-name="last">
      > <fo:block border-before-style="solid"
      > border-before-width="0.5pt" space-after="2mm"/>
      > <fo:block text-align-last="justify">Left footer
      > <xsl:value-of select="model"/>
      > <fo:leader leader-pattern="space"/>
      > <fo:wrapper font-weight="bold">
      > <xsl:value-of select="$variablehere"/>
      > </fo:wrapper>
      > </fo:block>
      > <fo:block text-align="right" font-weight="bold">End of
      > file
      > <fo:leader leader-pattern="space"
      > leader-length="30%"/>
      > <xsl:text>Chap Here</xsl:text>
      > </fo:block>
      > <fo:block text-align="right" font-weight="bold">
      > <fo:leader leader-pattern="space"
      > leader-length="20%"/>
      > <xsl:value-of
      > select="//issdate/@year"/>-<xsl:value-of
      > select="//issdate/@month"/>-<xsl:value-of select="//issdate/@day"/>
      > Page <fo:page-number/></fo:block>
      > </fo:static-content>
      > <fo:static-content flow-name="rest" region-name="rest">
      > <fo:block border-before-style="solid"
      > border-before-width="0.5pt" space-after="2mm"/>
      > <fo:block text-align-last="justify">Left footer
      > <xsl:value-of select="model"/>
      > <fo:leader leader-pattern="space"/>
      > <fo:wrapper font-weight="bold">
      > <xsl:value-of select="$variablehere"/>
      > </fo:wrapper>
      > </fo:block>
      > <fo:block text-align="right" font-weight="bold">
      > <xsl:text>Chap Here</xsl:text>
      > </fo:block>
      > <fo:block text-align="right" font-weight="bold">
      > <fo:leader leader-pattern="space"
      > leader-length="20%"/>
      > <xsl:value-of
      > select="//issdate/@year"/>-<xsl:value-of
      > select="//issdate/@month"/>-<xsl:value-of select="//issdate/@day"/>
      > Page <fo:page-number/>
      > </fo:block>
      > </fo:static-content>
      > <fo:flow flow-name="xsl-region-body">
      > <fo:marker marker-class-name="issue-table-header"/>
      > <xsl:apply-templates/>
      > </fo:flow>
      > </fo:page-sequence>
      > </fo:root>
      > </xsl:template>
      >
      > TABLE INFORMATION --
      >
      > <xsl:template match="table">
      > <xsl:apply-templates select="title" mode="make-title"/>
      > <fo:table margin-left="2cm" table-layout="fixed"
      > inline-progression-dimension="15cm" border-before-style="solid"
      > border-before-width="0.5pt" border-after-style="solid"
      > border-after-width="0.5pt">
      > <xsl:apply-templates/>
      > </fo:table>
      > </xsl:template>
      >
      > <xsl:template match="title" mode="make-title">
      > <fo:table-and-caption id="{generate-id(.)}"
      > caption-side="before" space-after="4mm">
      > <fo:table-caption space-after="2mm">
      > <fo:block text-align="center" font-style="italic"
      > keep-with-next.within-page="always" start-indent="0em">
      > <fo:marker marker-class-name="
      > issue-table-header"/>
      > <xsl:text>Table </xsl:text>
      > <xsl:number count="table//title" from="dmodule"
      > level="any"/>
      > <xsl:text> </xsl:text>
      > <xsl:value-of select="."/>
      > </fo:block>
      > </fo:table-caption>
      > </fo:table-and-caption>
      > </xsl:template>
      >
      > <xsl:template match="entry">
      > <fo:table-cell padding-end="6mm">
      > <xsl:if test="ancestor-or-self::table/title">
      > <fo:marker marker-class-name="issue-table-header">
      > <fo:block margin-left="2cm" border-after-style="solid"
      > border-after-width="0.5pt" space-before="1mm" space-after="4mm"
      > text-align="center" font-style="italic"
      > keep-with-next.within-page="always" start-indent="0em">
      > <xsl:text>Table </xsl:text>
      > <xsl:number count="table//title" from="dmodule"
      > level="any"/>
      > <xsl:text> </xsl:text>
      > <xsl:value-of select="table//title"/>
      >
      > <xsl:value-of select="ancestor
      > -or-self::table/title"/>
      > <xsl:text> (Continued)</xsl:text>
      > </fo:block>
      > </fo:marker>
      > </xsl:if>
      > <fo:block margin-left="-2cm" text-align="left">
      > <xsl:apply-templates/>
      > </fo:block>
      > </fo:table-cell>
      > </xsl:template>
      > _______________________________
      >
      > Any ideas are greatly appreciated!
      >
      > Thanks.
      >
      > Carolyn Oliver
    • Show all 4 messages in this topic