static content in xsl-fo

Static Content

1. Is it possible to have different static-content in different pages
2. How to seperate footnotes from body with a line
3. Static Content dependent on on body content

1.

Is it possible to have different static-content in different pages

James Tauber

You can have different static-content in different page-sequences, so just have a page-sequence for the first page and a page-sequence for the rest.

2.

How to seperate footnotes from body with a line

David Tolpin



> I'd like to have a leader separating the body from the
> footnotes, like:

>   This is some text in the flow.
>   -------
>   1. First footnote.
>   2. Second footnote.

> I have a <footnote> element (inline) and a matching template in the XSL,
> but if I put the leader there there will be leaders between each footnote
> of course.

this is simple and standard.

<fo:static-content 
	  flow-name="xsl-footnote-separator">
	  <fo:block><fo:leader leader-pattern="rule" 
	  leader-length="100%" rule-thickness="0.5pt" 
	  rule-style="solid" color="black"/>
 </fo:block></fo:static-content>

3.

Static Content dependent on on body content

Mike Grimley

Because I simply have a choice of two, I have the block displaying 'Unchanged' by default. I only set the marker if the status of an instruction is 'Changed'. If there is a 'Changed' marker, it simply covers the default.

<fo:static-content flow-name="EvenPage-header">
	  <fo:block-container height="30pt" 
	  position="fixed" top="2.5pc" text-align="center">
	  <fo:block xsl:use-attribute-sets="Status">Unchanged</fo:block>
	</fo:block-container>
	<fo:block-container height="30pt" 
	  position="fixed" top="2.5pc" text-align="center">
	  <fo:retrieve-marker retrieve-class-name="Status" 
	  retrieve-position="first-including-carryover" 
	  retrieve-boundary="page"/>
      </fo:block-container>
</fo:static-content>