xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JBry...@s-s-t.com
Subject Re: more than one fo:flow in fo:page-sequence
Date Tue, 27 Sep 2005 20:19:34 GMT
Ok, i want to make a head, a body  and a foot part of my site! So i have 
implement a xsl-region-before, xsl-region-body and xsl-region-after part 
my site! You understand?!?
But i can only implement a <fo:flow flow-name="xsl-region-before"> or  a 
<fo:flow flow-name="xsl-region-body"> but not both! So what should i do in 

that case?!


Here's how (a trimmed down portion of one of my XSL files that I use to 
produce a data dictionary):

  <xsl:template match="/">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <fo:simple-page-master master-name="first">
          <fo:region-body region-name="first" />
        <fo:simple-page-master master-name="contents">
          <fo:region-body region-name="contents" margin-top="1in" 
margin-bottom="1in" />
          <fo:region-before region-name="header-contents" extent="1in" />
          <fo:region-after region-name="footer-contents" extent="1in" />
      <fo:page-sequence master-reference="first">
        <fo:flow flow-name="first">
          <fo:block xsl:use-attribute-sets="doctitle">
            <!-- Title and legal page blocks go here -->
      <fo:page-sequence master-reference="contents" 
initial-page-number="1" format="i">
        <fo:static-content flow-name="header-contents">
          <fo:block xsl:use-attribute-sets="body">
            <!-- header stuff goes here -->
        <fo:static-content flow-name="footer-contents">
          <fo:block xsl:use-attribute-sets="footercenter">
            <!-- footer stuff goes here -->
        <fo:flow flow-name="contents">
          <fo:block xsl:use-attribute-sets="pagetitle1" id="contents">
          <fo:block xsl:use-attribute-sets="contents1">
          <fox:outline internal-destination="contents">
          <xsl:apply-templates mode="contents" />
      <fo:page-sequence master-reference="main" initial-page-number="1">
        <fo:static-content flow-name="header-main">
          <fo:block xsl:use-attribute-sets="body">
            <!-- header stuff goes here -->
        <fo:static-content flow-name="footer-main">
          <fo:block xsl:use-attribute-sets="footercenter">
            <!-- footer stuff goes here -->
        <fo:flow flow-name="xsl-region-body">
          <!-- build the bookmarks -->
          <xsl:apply-templates mode="bookmark" />
          <!-- build the body content -->
          <xsl:apply-templates />
<!-- and so on -->

Notice the ways names map from the simple-page-masters to the named 
portions within page-sequences.


Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message