summaryrefslogtreecommitdiff
path: root/tex/context/foxet/fo-0621.fo
blob: fa14aefc624033bcb7089fdf0b87956c822bc397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version='1.0'?>

<!-- foxet test file - Hans Hagen - PRAGMA ADE - www.pragma-ade.com -->

<fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format' xmlns:fe='http://www.pragma-ade.com/schemas/foxet.rng'>

    <fo:layout-master-set>
        <fo:simple-page-master master-name='any' margin='2cm'>
            <fe:message>setting up simple page master 'any'</fe:message>
            <fo:region-before background-color='darkgray' extent='1cm'/>
            <fo:region-after  background-color='darkgray' extent='1cm'/>
            <fo:region-body   background-color='darkgray' margin-top='2cm' margin-bottom='2cm' padding='.5cm'/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name='first-page' margin='2cm'>
            <fe:message>setting up simple page master 'first-page'</fe:message>
            <fo:region-before background-color='red' extent='1cm'/>
            <fo:region-after  background-color='red' extent='1cm'/>
            <fo:region-body   background-color='red' margin='2cm' padding='.5cm'/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name='left-page' margin='2cm'>
            <fe:message>setting up simple page master 'left-page'</fe:message>
            <fo:region-before background-color='green' extent='1cm'/>
            <fo:region-after  background-color='green' extent='1cm'/>
            <fo:region-body   background-color='green' margin='2cm' padding='.5cm'/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name='right-page' margin='2cm'>
            <fe:message>setting up simple page master 'right-page'</fe:message>
            <fo:region-before background-color='blue' extent='1cm'/>
            <fo:region-after  background-color='blue' extent='1cm'/>
            <fo:region-body   background-color='blue' margin='2cm' padding='.5cm'/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name='blank-page' margin='2cm'>
            <fe:message>setting up simple page master 'blank-page'</fe:message>
            <fo:region-before background-color='black' extent='1cm'/>
            <fo:region-after  background-color='black' extent='1cm'/>
            <fo:region-body   background-color='black' margin='2cm' padding='.5cm'/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name='odd' margin='2cm'>
            <fe:message>setting up simple page master 'odd'</fe:message>
            <fo:region-before background-color='cyan' extent='1cm'/>
            <fo:region-after  background-color='cyan' extent='1cm'/>
            <fo:region-body   background-color='cyan' margin='2cm' padding='.5cm' margin-right='2cm'/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name='even' margin='2cm'>
            <fe:message>setting up simple page master 'even'</fe:message>
            <fo:region-before background-color='magenta' extent='1cm'/>
            <fo:region-after  background-color='magenta' extent='1cm'/>
            <fo:region-body   background-color='magenta' margin='2cm' padding='.5cm' margin-left='2cm'/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name='rest' margin='2cm'>
            <fe:message>setting up simple page master 'rest'</fe:message>
            <fo:region-before background-color='yellow' extent='1cm'/>
            <fo:region-after  background-color='yellow' extent='1cm'/>
            <fo:region-body   background-color='yellow' margin='2cm' padding='.5cm'/>
        </fo:simple-page-master>

        <fo:page-sequence-master master-name='demo'>
            <fe:message>setting up page sequence master 'demo'</fe:message>
            <fo:conditional-page-master-reference page-position='first' master-reference='first-page'/>
            <fo:conditional-page-master-reference page-position='blank' master-reference='blank-page'/>
            <fo:conditional-page-master-reference page-position='odd'   master-reference='odd'/>
            <fo:conditional-page-master-reference page-position='even'  master-reference='even'/>
        </fo:page-sequence-master>
        <fo:page-sequence-master master-name='omed'>
            <fe:message>setting up page sequence master 'omed'</fe:message>
            <fo:conditional-page-master-reference page-position='first' master-reference='first-page'/>
            <fo:conditional-page-master-reference page-position='blank' master-reference='blank-page'/>
            <fo:conditional-page-master-reference page-position='odd'   master-reference='even'/>
            <fo:conditional-page-master-reference page-position='even'  master-reference='odd'/>
        </fo:page-sequence-master>
    </fo:layout-master-set>

    <fo:page-sequence>
        <fe:message>starting page sequence 'any'</fe:message>
        <fo:flow flow-name='xsl-region-body'>
            <fo:block>
              <fe:include url='fe-zapf.xml' n='15'/>
            </fo:block>
        </fo:flow>
    </fo:page-sequence>

    <fo:page-sequence master-reference='demo' force-page-count='end-on-even'>
        <fe:message>starting page sequence 'demo'</fe:message>
        <fo:flow flow-name='xsl-region-body'>
            <fo:block>
              <fe:include url='fe-bryson.xml' n='30'/>
            </fo:block>
        </fo:flow>
    </fo:page-sequence>

    <fo:page-sequence master-reference='omed' force-page-count='end-on-even'>
        <fe:message>starting page sequence 'omed'</fe:message>
        <fo:flow flow-name='xsl-region-body'>
            <fo:block>
              <fe:include url='fe-ward.xml' n='30'/>
            </fo:block>
        </fo:flow>
    </fo:page-sequence>

</fo:root>