[xep-support] Using FO to create page headers of open tags on page-breaks

David Tolpin dvd at renderx.com
Fri Apr 5 20:46:10 PST 2002


> 
> We are using XML (EAD DTD) to encode data.  We want to print headers for any open parent tags when there is a page break.
> 
> For instance,
> 
> <c01>Letters
> <c02>Personal
> <c03>A-M</c03>
> ---Page break---
> Now we want it to output any parent tags that are open like this:
> Letters (cont'd)
> Personal (cont'd)
> <c03>N-Z</c03>
> </c02>
> </c01>
> 
> Is this possible with FO?  How would you go about doing this?  Thanks for any tips.

Yep, it is.

In the flow:

<fo:flow>
...
<fo:block>
  <fo:block keep-with-next.within-page="always"> <!-- this is the title -->
    <fo:marker marker-class-name="c01">Letters</fo:marker>
    Letters
  </fo:block>
  <fo:block>
    <fo:marker marker-class-name="c01">Letters (Continued)</fo:marker>
    Here go the contents.
  </fo:block>
</fo:block>

In the static content:

<fo:retrieve-marker retrieve-class-name="c01" retrieve-position="first-including-carryover"/>

Hope this helps.

David
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list