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

fo:page-sequence-master - sequencing and selection

Subject: fo:page-sequence-master - sequencing and selection
From: Dave Pawson <daveP@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Dec 2000 04:20:04 +0000
fo page sequence master
Given

  <fo:page-sequence-master master-name="master-sequence">
     <fo:single-page-master-reference
       master-name="first"/> <!-- First page is special (black border)-->
       <fo:repeatable-page-master-reference 
         master-name="rest" 
         maximum-repeats="6"/><!-- Then 8 ordinary pages (red border)-->
       <fo:repeatable-page-master-reference
         master-name="twocols" 
         maximum-repeats="2"/><!-- Then two page of two cols -->
       <fo:repeatable-page-master-reference
         master-name="rest"      
         maximum-repeats="nolimit"/><!-- Now go back to ordinary pages -->
   </fo:page-sequence-master>
  </fo:layout-master-set>

I then have two
  <fo:page-sequence  
     master-name="master-sequence">
blocks.
The first one has a flow which applies to sections 1,2 & 4
the second has a flow which applies to section 3.




My intent is that the document be formatted as:
1 page - black border
6 pages - red border
n pages - two columns.

What appears to be happening is that the page-sequence master subsequences
are being triggered as follows.
First page, fine, black border master used.
Second - 7th page, fine, red border master used.
then it goes wrong.

When more content is found, it goes to the page-sequence-master,
having fulfilled the conditions of the second subsequence,
and instead of going down to the third subsequence, starts again at the top,
and uses the black border master!
The rec states in 6.4.7
<quote>The children of the fo:page-sequence-master are a sequence of sub-sequence-specifiers. A page-sequence satisfies the constraint determined by an fo:page-sequence-master if (a) it can be partitioned into sub-sequences of pages that map one-to-one, in order, to the sub-sequence of sub-sequence-specifiers that are the children of the fo:page-sequence-master and, (b) for each sub-sequence of pages, that sub-sequence satisfies the constraints of the corresponding sub-sequence-specifier. Note that the mapping of sub-sequences of the sequence of pages to sub-sequence-specifiers need not be onto; that is, the sequence of sub-sequences of pages can be shorter than the sequence of sub-sequence-specifiers. </quote>

I had hoped that this Clarkism (sorry James) meant that the sequence cycled through
top to bottom looking for satisfaction,  till it failed, or all flows were 
satisfied.

How can I achieve what I want please.

TIA, DaveP





 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.