Loading ...
Sorry, an error occurred while loading the content.

Re: page sequences

Expand Messages
  • davidd_gers
    ... region ... accepting the ... keeping ... content of ... static / ... Ken, thanks very much. Am I correct in assuming that this solution would result in
    Message 1 of 4 , Jun 3, 2003
    • 0 Attachment
      --- In XSL-FO@yahoogroups.com, "G. Ken Holman" <gkholman@c...> wrote:
      > At 2003-06-03 08:56 +0000, davidd_gers wrote:
      > >All i need to do is have an
      > >alternating page sequence but with page 2 (ie back of page1) always
      > >kept blank. The trick is I need text on page 1 to continue to flow
      > >onto page 3, and then just continue with a simple alternating odd-
      > >even sequence.
      >
      > Thankfully, this is quite straightforward in conforming XSL-FO
      engines:
      > alternate in a page sequence two simple page masters, one with a
      region
      > accepting the paginated flow and the other without a region
      accepting the
      > paginated flow.
      >
      > I've used this when I want the even pages to be ruled lines for
      keeping
      > notes while the odd pages are the flowed content of the input XML
      > document. In your case, just don't put anything in the static
      content of
      > the even pages.
      >
      > <layout-master-set>
      > <simple-page-master master-name="frame" ...
      > <region-body region-name="frame-body" ...
      > </simple-page-master>
      > <simple-page-master master-name="frame-static" ...
      > <region-body region-name="static-body" ...
      > </simple-page-master>
      > <page-sequence-master master-name="frame-pages">
      > <repeatable-page-master-alternatives>
      > <conditional-page-master-reference master-reference="frame"
      > odd-or-even="odd"/>
      > <conditional-page-master-reference master-reference="frame-
      static"/>
      > </repeatable-page-master-alternatives>
      > </page-sequence-master>
      > </layout-master-set>
      >
      > <page-sequence master-reference="frame-pages">
      > <flow flow-name="frame-body" font-size="30pt">
      > ...
      >
      >
      > I hope this helps.
      >
      > ................. Ken
      >
      >
      > --
      > Upcoming hands-on courses: (registration still open!)
      > - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003
      >
      > G. Ken Holman mailto:gkholman@C...
      > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
      > Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
      > ISBN 0-13-065196-6 Definitive XSLT and XPath
      > ISBN 0-13-140374-5 Definitive XSL-FO
      > ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
      > ISBN 1-894049-11-X Practical Formatting Using XSL-FO
      > Member of the XML Guild of Practitioners: http://XMLGuild.info
      > Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc

      Ken, thanks very much. Am I correct in assuming that this solution
      would result in all even pages being blank? What if I only wanted p2
      (the first even page) to be blank, but the rest of the document just
      flows normally. This is my real problem.

      David
    • G. Ken Holman
      ... I apologize for misreading your requirements ... just change the page sequence to the following:
      Message 2 of 4 , Jun 3, 2003
      • 0 Attachment
        At 2003-06-03 11:52 +0000, davidd_gers wrote:
        >Ken, thanks very much. Am I correct in assuming that this solution
        >would result in all even pages being blank? What if I only wanted p2
        >(the first even page) to be blank, but the rest of the document just
        >flows normally. This is my real problem.

        I apologize for misreading your requirements ... just change the page
        sequence to the following:

        <page-sequence-master master-name="frame-pages">
        <single-page-master-reference master-reference="frame"/>
        <single-page-master-reference master-reference="frame-static"/>
        <repeatable-page-master-reference master-reference="frame"/>
        </page-sequence-master>

        That way you get only one page of flow, one page of static content, then
        the rest is for flow.

        I hope this helps.

        ................. Ken


        --
        Upcoming hands-on courses: (registration still open!)
        - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003

        G. Ken Holman mailto:gkholman@...
        Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
        Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
        ISBN 0-13-065196-6 Definitive XSLT and XPath
        ISBN 0-13-140374-5 Definitive XSL-FO
        ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
        ISBN 1-894049-11-X Practical Formatting Using XSL-FO
        Member of the XML Guild of Practitioners: http://XMLGuild.info
        Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
      Your message has been successfully submitted and would be delivered to recipients shortly.