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

xsl-fo header problems

Subject: xsl-fo header problems
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Fri, 18 Apr 2003 10:37:46 -0700 (PDT)
xsl fo extent
Friends,
I am constructing a skeleton fo document that resembles our hard copy
word processor files.

One problem I have is that I am not sure how to solve the header
information. I would  like the header to reflect the fo:marker from
the previous page. However, all the info I have read on the list and
in the W3c spec sheets aren't helping me. I have tried all the
possible values and I am still not getting it.

I am wondering if this problem (not getting the marker from the
previous page when there is overflow) is a fo or xsl problem. (code
below)

Mike F.


Example:

====Page 1:=====
=>[no header]
Chapter Title
Section 1 <fo:marker/>
  Paragraph
  Paragraph
  Paragraph
====Page 2:=====
=>Section 1
  Paragraph
  Paragraph
  Paragraph
Section 2 <fo:marker/>
  Paragraph
  Paragraph
====Page 3:=====
=>Section 2
  Paragraph
  Paragraph


Here is my code.

====FO:====
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
   <fo:layout-master-set>

      <fo:simple-page-master master-name="title_page"
page-height="11in" page-width="8.5in" margin-top="0.25in"
margin-bottom="0.25in" margin-left="0.8in" margin-right="0.8in">
         <fo:region-body padding-end="1mm" padding-start="1mm"
margin-top="0.6in" margin-bottom="0.8in"/>
         <fo:region-before extent="1in"/>
         <fo:region-after extent="0.7in"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="front_matter"
page-height="11in" page-width="8.5in" margin-top="0.25in"
margin-bottom="0.25in" margin-left="0.8in" margin-right="0.8in">
         <fo:region-body padding-end="1mm" padding-start="1mm"
margin-top="0.6in" margin-bottom="0.8in"/>
         <fo:region-before extent="1in"/>
         <fo:region-after extent="0.7in"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="container_list_first"
page-height="11in" page-width="8.5in" margin-top="0.25in"
margin-bottom="0.25in" margin-left="0.8in" margin-right="0.8in">
         <fo:region-body padding-end="1mm" padding-start="1mm"
margin-top="0.6in" margin-bottom="0.8in"/>
         <fo:region-after extent="0.7in"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="container_list_rest"
page-height="11in" page-width="8.5in" margin-top="0.25in"
margin-bottom="0.25in" margin-left="0.8in" margin-right="0.8in">
         <fo:region-body padding-end="1mm" padding-start="1mm"
margin-top="1in" margin-bottom="0.8in"/>
         <fo:region-before extent="1.2in"/>
         <fo:region-after extent="0.7in"/>
      </fo:simple-page-master>

      <fo:page-sequence-master master-name="container_list">
         <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference
master-reference="container_list_first" page-position="first"/>
            <fo:conditional-page-master-reference
master-reference="container_list_rest" page-position="rest"/>
         </fo:repeatable-page-master-alternatives>
      </fo:page-sequence-master>

   </fo:layout-master-set>

<fo:page-sequence master-reference="container_list"
initial-page-number="1">
  <fo:static-content flow-name="xsl-region-before">
    <fo:block space-before="0.3in" font-family="Arial">
      <fo:block space-before="8pt">
      <fo:table inline-progression-dimension.optimum="100%"
table-layout="fixed">
        <fo:table-column column-number="1"
column-width="proportional-column-width(15)"/>
          <fo:table-column column-number="2"
column-width="proportional-column-width(85)"/>
            <fo:table-body>
              <fo:table-row keep-together="always">
                <fo:table-cell number-columns-spanned="2">
                  <fo:block><fo:retrieve-marker
retrieve-class-name="series-title" retrieve-boundary="page-sequence"
retrieve-position="first-starting-within-page"/></fo:block>
                </fo:table-cell>
              </fo:table-row>
              <fo:table-row keep-together="always">
                <fo:table-cell padding-bottom="0.1em"
padding-right="0.5em" border-bottom="solid black 1pt">
                  <fo:block space-before="0.1in" font-size="10pt"
font-style="italic" font-weight="bold">Box/Folder</fo:block>
                </fo:table-cell>
                <fo:table-cell padding-bottom="0.1em"
padding-right="0.5em" border-bottom="solid black 1pt">
                  <fo:block space-before="0.1in" font-size="10pt"
font-style="italic" font-weight="bold">Contents</fo:block>
                </fo:table-cell>
              </fo:table-row>
            </fo:table-body>
          </fo:table>
      </fo:block>
    </fo:block>
  </fo:static-content>


__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.