aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples/pagination/allregions.fo
blob: 6a29c75e8bdeaf725404e19ab95d05d7bf206193 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0" encoding="utf-8"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

  <!-- defines page layout -->
  <fo:layout-master-set>

    <!-- layout for the first page -->
    <fo:simple-page-master master-name="only"
                  page-height="29.7cm" 
                  page-width="21cm"
                  margin-top="1cm" 
                  margin-bottom="2cm" 
                  margin-left="2.5cm" 
                  margin-right="2.5cm">
      <fo:region-body
	  	margin-top="3cm" margin-bottom="1.5cm"
		margin-left="2cm" margin-right="2cm"/>
      <fo:region-before precedence="true" extent="3cm"/>
      <fo:region-after precedence="true" extent="1.5cm"/>
      <fo:region-start extent="1cm"/>
      <fo:region-end extent="1cm"/>
    </fo:simple-page-master>

  </fo:layout-master-set>
  <!-- end: defines page layout -->

  <!-- actual layout -->
  <fo:page-sequence master-name="only" initial-page-number="1">

    <!-- usage of page layout -->
    <!-- header -->
    <fo:static-content flow-name="xsl-region-before">
      <fo:block text-align="end" 
            font-size="10pt" 
            font-family="serif" 
            line-height="14pt" >
        XML Recommendation - p. <fo:page-number/>
      </fo:block>
    </fo:static-content> 

    <fo:static-content flow-name="xsl-region-start">
    	<fo:block-container border-color="black" border-style="solid" border-width="1pt"
			height="22.2cm" width="1cm" top="0cm" left="0cm" position="absolute">
			<fo:block text-align="start" font-size="8pt"
			font-family="serif" line-height="10pt">Start</fo:block>
		</fo:block-container>
    </fo:static-content> 

    <fo:static-content flow-name="xsl-region-end">
    	<fo:block-container border-color="black" border-style="solid" border-width="1pt"
			height="22.2cm" width="1cm" top="0cm" left="0cm" position="absolute">
			<fo:block text-align="start" font-size="8pt"
			font-family="serif" line-height="10pt">End</fo:block>
		</fo:block-container>
    </fo:static-content> 

    <fo:flow flow-name="xsl-region-body">

      <!-- defines text title level 1-->
      <fo:block font-size="18pt" 
            font-family="sans-serif" 
            line-height="24pt"
            space-after.optimum="15pt"
            background-color="blue"
            color="white"
            text-align="center"
            padding-top="0pt">
        Extensible Markup Language (XML) 1.0
      </fo:block>

      <!-- defines text title level 2-->
      <fo:block font-size="16pt" 
            font-family="sans-serif" 
            line-height="20pt"
            space-before.optimum="10pt"
            space-after.optimum="10pt"
            text-align="start"
            padding-top="0pt">
        Abstract
      </fo:block>

      <!-- Normal text -->
      <fo:block font-size="12pt" 
                font-family="sans-serif" 
                line-height="15pt"
                space-after.optimum="3pt"
                text-align="start">
        The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
        enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
        has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information 
        go to <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
      </fo:block>

      <!-- defines text title level 2-->
      <fo:block font-size="16pt" 
            font-family="sans-serif" 
            line-height="20pt"
            space-before.optimum="10pt"
            space-after.optimum="10pt"
            text-align="start"
            padding-top="0pt">
        Status of this document 
      </fo:block>

      <!-- Normal text -->
      <fo:block font-size="12pt" 
                font-family="sans-serif" 
                line-height="15pt"
                space-after.optimum="3pt"
                text-align="start">
        This document has been reviewed by W3C Members and other interested parties and has been endorsed by the Director as a
        W3C Recommendation. It is a stable document and may be used as reference material or cited as a normative reference from
        another document. W3C's role in making the Recommendation is to draw attention to the specification and to promote its
        widespread deployment. This enhances the functionality and interoperability of the Web. For further information go to 
        <fo:basic-link external-destination="normal.pdf">normal.pdf</fo:basic-link>
      </fo:block>

      <!-- Normal text -->
      <fo:block font-size="12pt" 
                font-family="sans-serif" 
                line-height="15pt"
                space-after.optimum="3pt"
                text-align="start">
        This document specifies a syntax created by subsetting an existing, widely used international text processing standard
        (Standard Generalized Markup Language, ISO 8879:1986(E) as amended and corrected) for use on the World Wide Web. It
        is a product of the W3C XML Activity, details of which can be found at http://www.w3.org/XML. A list of current W3C
        Recommendations and other technical documents can be found at http://www.w3.org/TR. 
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>