You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Edward Dowgiallo <ed...@ptdprolog.net> on 2001/12/07 15:40:53 UTC

Re: Dictionary style pages

Is there a way to do this? Again, it is a very common book format.
Ed
  ----- Original Message ----- 
  From: Edward Dowgiallo 
  To: fop-user@xml.apache.org 
  Sent: Thursday, December 06, 2001 12:49 PM
  Subject: Dictionary style pages


  Could someone point me to an example of producing a dictionary or telephone book style page with fop?

  By this I mean:
    a.. I'd like to put the page number at the bottom of the page on the left hand side for even numbered pages and on the right hand side for odd numbered pages. 
    b.. I'd like to put the earliest name in the collating sequence that appears on the page on the left hand top and latest name in the collating sequece on the right hand top. i.e. if the page contains entires in alphabetical order from cat to dog, I'd like the word cat on the left hand side of the region-before and dog on the right hand side of the region-before.
  Thank you,
  Ed


Re: Dictionary style pages

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
All *-page-master-references point at simple-page-masters. That means that one up to five regions get picked out, all of which can have user-specified names, using the 'region-name' property. There is nothing magic about names like 'xsl-region-before';they are only defaults. To associate a static-content with a specific region, use the specific name you have assigned to the region, in the page-master that will get selected by your conditions.

AHS
  ----- Original Message ----- 
  From: Edward Dowgiallo 
  To: fop-dev@xml.apache.org 
  Sent: Friday, December 07, 2001 3:17 PM
  Subject: Re: Dictionary style pages


  Corrina,

      The example (franklin_2pageseqs.fo) does not do what I am looking for. Although starting with page 7, it does alternate between odd and even masters, the page number is always on the right hand bottom. I want to know how to make it appear on right hand bottom for odd pages and left hand bottom for even pages.

      Is there a syntax that allows me to associate the static-content with a particular conditional-page-master?

      However, I do thank you for taking a moment to try and help me.

  Ed
    ----- Original Message ----- 
    From: Corinna Hischke 
    To: fop-dev@xml.apache.org 
    Sent: Friday, December 07, 2001 10:14 AM
    Subject: Re: Dictionary style pages


    Hi,

    1. page number on the left/right for left/right pages:
    You have to set up two page-sequences, one for the odd and one for the even pages, say 'left_pages' and 'right_pages'. Each sequence must have a separate name for the region-after.

    Tie them together in your page-sequence-master with this: 
     <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference
         master-name="right_pages"
         odd-or-even="odd" />
        <fo:conditional-page-master-reference
         master-name="left_pages"
         odd-or-even="even" />
       </fo:repeatable-page-master-alternatives>

    In your fo:flow you can then put up two fo:static-content sections by referring to the different region-after names.

    For more details, see docs/examples/pagination/franklin_2pageseqs.fo.

    2. I didn't try it, but theoretically markers should be used for this kind of 'running header'.

    HTH, Corinna
      ----- Original Message ----- 
      From: Edward Dowgiallo 
      To: fop-user@xml.apache.org ; fop-dev@xml.apache.org 
      Sent: Friday, December 07, 2001 3:40 PM
      Subject: Re: Dictionary style pages


      Is there a way to do this? Again, it is a very common book format.
      Ed
        ----- Original Message ----- 
        From: Edward Dowgiallo 
        To: fop-user@xml.apache.org 
        Sent: Thursday, December 06, 2001 12:49 PM
        Subject: Dictionary style pages


        Could someone point me to an example of producing a dictionary or telephone book style page with fop?

        By this I mean:
          a.. I'd like to put the page number at the bottom of the page on the left hand side for even numbered pages and on the right hand side for odd numbered pages. 
          b.. I'd like to put the earliest name in the collating sequence that appears on the page on the left hand top and latest name in the collating sequece on the right hand top. i.e. if the page contains entires in alphabetical order from cat to dog, I'd like the word cat on the left hand side of the region-before and dog on the right hand side of the region-before.
        Thank you,
        Ed


Re: Dictionary style pages

Posted by Edward Dowgiallo <ed...@ptdprolog.net>.
Corrina,

    The example (franklin_2pageseqs.fo) does not do what I am looking for. Although starting with page 7, it does alternate between odd and even masters, the page number is always on the right hand bottom. I want to know how to make it appear on right hand bottom for odd pages and left hand bottom for even pages.

    Is there a syntax that allows me to associate the static-content with a particular conditional-page-master?

    However, I do thank you for taking a moment to try and help me.

Ed
  ----- Original Message ----- 
  From: Corinna Hischke 
  To: fop-dev@xml.apache.org 
  Sent: Friday, December 07, 2001 10:14 AM
  Subject: Re: Dictionary style pages


  Hi,

  1. page number on the left/right for left/right pages:
  You have to set up two page-sequences, one for the odd and one for the even pages, say 'left_pages' and 'right_pages'. Each sequence must have a separate name for the region-after.

  Tie them together in your page-sequence-master with this: 
   <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference
       master-name="right_pages"
       odd-or-even="odd" />
      <fo:conditional-page-master-reference
       master-name="left_pages"
       odd-or-even="even" />
     </fo:repeatable-page-master-alternatives>

  In your fo:flow you can then put up two fo:static-content sections by referring to the different region-after names.

  For more details, see docs/examples/pagination/franklin_2pageseqs.fo.

  2. I didn't try it, but theoretically markers should be used for this kind of 'running header'.

  HTH, Corinna
    ----- Original Message ----- 
    From: Edward Dowgiallo 
    To: fop-user@xml.apache.org ; fop-dev@xml.apache.org 
    Sent: Friday, December 07, 2001 3:40 PM
    Subject: Re: Dictionary style pages


    Is there a way to do this? Again, it is a very common book format.
    Ed
      ----- Original Message ----- 
      From: Edward Dowgiallo 
      To: fop-user@xml.apache.org 
      Sent: Thursday, December 06, 2001 12:49 PM
      Subject: Dictionary style pages


      Could someone point me to an example of producing a dictionary or telephone book style page with fop?

      By this I mean:
        a.. I'd like to put the page number at the bottom of the page on the left hand side for even numbered pages and on the right hand side for odd numbered pages. 
        b.. I'd like to put the earliest name in the collating sequence that appears on the page on the left hand top and latest name in the collating sequece on the right hand top. i.e. if the page contains entires in alphabetical order from cat to dog, I'd like the word cat on the left hand side of the region-before and dog on the right hand side of the region-before.
      Thank you,
      Ed


Re: Dictionary style pages

Posted by Edward Dowgiallo <ed...@ptdprolog.net>.
Corinna,

    For 2, markers are just what I was looking for. Thank you very much.

Ed
  ----- Original Message ----- 
  From: Corinna Hischke 
  To: fop-dev@xml.apache.org 
  Sent: Friday, December 07, 2001 10:14 AM
  Subject: Re: Dictionary style pages


  Hi,

  1. page number on the left/right for left/right pages:
  You have to set up two page-sequences, one for the odd and one for the even pages, say 'left_pages' and 'right_pages'. Each sequence must have a separate name for the region-after.

  Tie them together in your page-sequence-master with this: 
   <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference
       master-name="right_pages"
       odd-or-even="odd" />
      <fo:conditional-page-master-reference
       master-name="left_pages"
       odd-or-even="even" />
     </fo:repeatable-page-master-alternatives>

  In your fo:flow you can then put up two fo:static-content sections by referring to the different region-after names.

  For more details, see docs/examples/pagination/franklin_2pageseqs.fo.

  2. I didn't try it, but theoretically markers should be used for this kind of 'running header'.

  HTH, Corinna
    ----- Original Message ----- 
    From: Edward Dowgiallo 
    To: fop-user@xml.apache.org ; fop-dev@xml.apache.org 
    Sent: Friday, December 07, 2001 3:40 PM
    Subject: Re: Dictionary style pages


    Is there a way to do this? Again, it is a very common book format.
    Ed
      ----- Original Message ----- 
      From: Edward Dowgiallo 
      To: fop-user@xml.apache.org 
      Sent: Thursday, December 06, 2001 12:49 PM
      Subject: Dictionary style pages


      Could someone point me to an example of producing a dictionary or telephone book style page with fop?

      By this I mean:
        a.. I'd like to put the page number at the bottom of the page on the left hand side for even numbered pages and on the right hand side for odd numbered pages. 
        b.. I'd like to put the earliest name in the collating sequence that appears on the page on the left hand top and latest name in the collating sequece on the right hand top. i.e. if the page contains entires in alphabetical order from cat to dog, I'd like the word cat on the left hand side of the region-before and dog on the right hand side of the region-before.
      Thank you,
      Ed


Re: Dictionary style pages

Posted by Corinna Hischke <co...@infix.de>.
Matthias,

the directory is part of the fop sitribution. It's a subdirectory of xml-fop - or whatever is the name of your FOP installation root directory - on the same level as the src  directory.

Sorry I wasn't clear about that - and that you had to wait for the answer ;))

Corinna
  ----- Original Message ----- 
  From: Matthias Fischer 
  To: fop-dev@xml.apache.org 
  Sent: Monday, December 10, 2001 9:09 AM
  Subject: RE: Dictionary style pages


  Hi Corinna,

  where is: docs/examples/pagination/franklin_2pageseqs.fo ?
  Are there some other pages with (working) XSL implementations, e.g. for a product catalogue?

  Matthias

    -----Original Message-----
    From: Corinna Hischke [mailto:corinna@infix.de]
    Sent: Friday, December 07, 2001 4:14 PM
    To: fop-dev@xml.apache.org
    Subject: Re: Dictionary style pages


    Hi,

    [...] 

    For more details, see docs/examples/pagination/franklin_2pageseqs.fo.

    2. I didn't try it, but theoretically markers should be used for this kind of 'running header'.

    HTH, Corinna 


RE: Dictionary style pages

Posted by Matthias Fischer <m....@abc-media.de>.
Hi Corinna,

where is: docs/examples/pagination/franklin_2pageseqs.fo ?
Are there some other pages with (working) XSL implementations, e.g. for a
product catalogue?

Matthias

  -----Original Message-----
  From: Corinna Hischke [mailto:corinna@infix.de]
  Sent: Friday, December 07, 2001 4:14 PM
  To: fop-dev@xml.apache.org
  Subject: Re: Dictionary style pages


  Hi,

  [...]

  For more details, see docs/examples/pagination/franklin_2pageseqs.fo.

  2. I didn't try it, but theoretically markers should be used for this kind
of 'running header'.

  HTH, Corinna


Re: Dictionary style pages

Posted by Corinna Hischke <co...@infix.de>.
Hi,

1. page number on the left/right for left/right pages:
You have to set up two page-sequences, one for the odd and one for the even pages, say 'left_pages' and 'right_pages'. Each sequence must have a separate name for the region-after.

Tie them together in your page-sequence-master with this: 
 <fo:repeatable-page-master-alternatives>
    <fo:conditional-page-master-reference
     master-name="right_pages"
     odd-or-even="odd" />
    <fo:conditional-page-master-reference
     master-name="left_pages"
     odd-or-even="even" />
   </fo:repeatable-page-master-alternatives>

In your fo:flow you can then put up two fo:static-content sections by referring to the different region-after names.

For more details, see docs/examples/pagination/franklin_2pageseqs.fo.

2. I didn't try it, but theoretically markers should be used for this kind of 'running header'.

HTH, Corinna
  ----- Original Message ----- 
  From: Edward Dowgiallo 
  To: fop-user@xml.apache.org ; fop-dev@xml.apache.org 
  Sent: Friday, December 07, 2001 3:40 PM
  Subject: Re: Dictionary style pages


  Is there a way to do this? Again, it is a very common book format.
  Ed
    ----- Original Message ----- 
    From: Edward Dowgiallo 
    To: fop-user@xml.apache.org 
    Sent: Thursday, December 06, 2001 12:49 PM
    Subject: Dictionary style pages


    Could someone point me to an example of producing a dictionary or telephone book style page with fop?

    By this I mean:
      a.. I'd like to put the page number at the bottom of the page on the left hand side for even numbered pages and on the right hand side for odd numbered pages. 
      b.. I'd like to put the earliest name in the collating sequence that appears on the page on the left hand top and latest name in the collating sequece on the right hand top. i.e. if the page contains entires in alphabetical order from cat to dog, I'd like the word cat on the left hand side of the region-before and dog on the right hand side of the region-before.
    Thank you,
    Ed


Re: Dictionary style pages

Posted by sp...@ChezPhil.org.
Hi Ed,

> Could someone point me to an example of producing a dictionary or
> telephone book style page with fop?  I'd like to put the earliest
> name in the collating sequence that appears on the page on the left
> hand top and latest name in the collating sequece on the right hand
> top

There is an example that does this in the FO examples distributed with
FOP: it is called something like glossary.xml.  It is done using
markers.

The impression that I get is that markers are only partially
implemented by FOP.  If you want to do exactly what this example does
you'll be OK, but I've never got anything else using markers to work
satisfactorily.

Good luck,

--Phil.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org