This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
fo:page-sequence-master - sequencing and selection
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] fo:page-sequence-master - sequencing and selection
- From: Dave Pawson <daveP at dpawson dot freeserve dot co dot uk>
- Date: Thu, 21 Dec 2000 04:20:04 +0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
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