~ubuntu-branches/ubuntu/raring/z3c.rml/raring-201302251714

« back to all changes in this revision

Viewing changes to src/z3c/rml/tests/input/rml-examples-004-templates.rml

  • Committer: Bazaar Package Importer
  • Author(s): Gediminas Paulauskas
  • Date: 2011-01-05 22:34:45 UTC
  • Revision ID: james.westby@ubuntu.com-20110105223445-wkcn61jbbuqid38s
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?> 
 
2
<!DOCTYPE document SYSTEM "rml_1_0.dtd"> 
 
3
<document filename="test_004_templates.pdf"> 
 
4
 
 
5
 
 
6
<template pageSize="(595, 842)" leftMargin="72" showBoundary="1">
 
7
        <pageTemplate id="main">
 
8
        <pageGraphics>
 
9
                <setFont name="Helvetica-BoldOblique" size="18"/>
 
10
                <drawRightString x="523" y="800">RML2PDF Test Suite - Test #4</drawRightString>
 
11
                <setFont name="Helvetica-BoldOblique" size="36"/>
 
12
                <drawCentredString x="297.5" y="755">Test #4: PAGE ONE</drawCentredString>
 
13
                <setFont name="Helvetica-Bold" size="144"/>
 
14
                <fill color="teal"/>
 
15
                <drawCentredString x="297.5" y="539">1</drawCentredString>
 
16
        </pageGraphics>
 
17
        <frame id="first" x1="1in" y1="1in" width="6.27in" height="4.645in"/>
 
18
        </pageTemplate>
 
19
        <pageTemplate id="secondary">
 
20
        <pageGraphics>
 
21
                <setFont name="Helvetica-BoldOblique" size="18"/>
 
22
                <drawRightString x="523" y="800">RML2PDF Test Suite - Test #4</drawRightString>
 
23
                <setFont name="Helvetica-BoldOblique" size="36"/>
 
24
                <drawCentredString x="297.5" y="755">Test #4: PAGE TWO</drawCentredString>
 
25
                <setFont name="Helvetica-Bold" size="144"/>
 
26
                <fill color="deepskyblue"/>
 
27
                <drawCentredString x="297.5" y="539">2</drawCentredString>
 
28
        </pageGraphics>
 
29
        <frame id="p2-first" x1="1in" y1="1in" width="3in" height="4.645in"/>
 
30
        <frame id="p2-second" x1="4.27in" y1="1in" width="3in" height="4.645in"/>
 
31
        </pageTemplate>
 
32
</template>
 
33
 
 
34
<stylesheet>
 
35
        <initialize>
 
36
        <alias id="style.normal" value="style.Normal"/>
 
37
        </initialize>
 
38
 
 
39
        <paraStyle
 
40
        name="h1"
 
41
        fontName="Helvetica-BoldOblique"
 
42
        fontSize="20"
 
43
        leading="36"
 
44
        />
 
45
 
 
46
        <paraStyle
 
47
        name="normal"
 
48
        fontName="Helvetica"
 
49
        fontSize="10"
 
50
        leading="12"
 
51
        />
 
52
 
 
53
        <paraStyle
 
54
        name="space below"
 
55
        fontName="Helvetica"
 
56
        fontSize="10"
 
57
        leading="12"
 
58
        spaceAfter="10"
 
59
        />
 
60
 
 
61
        <paraStyle name="bugReport"
 
62
        parent="h1"
 
63
        spaceBefore = "0"
 
64
        textColor = "red"
 
65
        />
 
66
                
 
67
</stylesheet>
 
68
 
 
69
 
 
70
<story>
 
71
<para style="h1">This is page 1 - frame 1</para>
 
72
<para style="space below"><b>This test spans two pages (this should be on page 1). It checks to see that using two separate templates works OK. It also tests to see that the "setNextTemplate" tag correctly splits the pages and displays them with the correct template.</b></para>
 
73
<para style="space below"><b>Description of page:</b> This page should have a single frame at the bottom of the page displaying this text, a big teal-coloured number "1" above it, and some header information above that.</para>
 
74
<para style="normal">This is the text for frame 1. This is the text for frame one.
 
75
This is the text for frame 1. This is the text for frame one.
 
76
This is the text for frame 1. This is the text for frame one. This is the text for frame one.
 
77
This is the text for frame 1. This is the text for frame one. This is the text for frame one.. This is the text for frame one. This is the text for frame one.
 
78
This is the text for frame 1. This is the text for frame one.
 
79
This is the text for frame 1. This is the text for frame one. This is the text for frame one.
 
80
This is the text for frame 1. This is the text for frame one. This is the text for frame one. This is the text for frame one. This is the text for frame one.
 
81
This is the text for frame 1. This is the text for frame one.
 
82
This is the text for frame 1. This is the text for frame one. This is the text for frame one.
 
83
</para>
 
84
<setNextTemplate name="secondary"/>
 
85
<nextFrame/>
 
86
 
 
87
 
 
88
 
 
89
<para style="h1">This is page2 - frame1</para>
 
90
<para style="space below"><b>This test spans two pages (this should be on page 2). It checks to see that using two separate templates works OK. It also tests to see that the "setNextTemplate" tag correctly splits the pages and displays them with the correct template.</b></para>
 
91
<para style="space below"><b>Description of page:</b> This page should have two different frames at the bottom of the page displaying text, a big deepskyblue-coloured number "2" above it, and some header information above that.</para>
 
92
<para style="normal">This is the text for frame 2. This is the text for frame two.
 
93
This is the text for frame 2. This is the text for frame two.
 
94
This is the text for frame 2. This is the text for frame two. This is the text for frame two.
 
95
This is the text for frame 2. This is the text for frame two. This is the text for frame two. This is the text for frame two. This is the text for frame two.
 
96
This is the text for frame 2. This is the text for frame two.
 
97
This is the text for frame 2. This is the text for frame two.
 
98
This is the text for frame 2. This is the text for frame two. This is the text for frame two.
 
99
</para>
 
100
<nextFrame/>
 
101
 
 
102
<para style="h1">This is page2 - frame2</para>
 
103
<para style="space below"><b>This test spans two pages (this should be on page 2). It checks to see that using two separate templates works OK. It also tests to see that the "setNextTemplate" tag correctly splits the pages and displays them with the correct template.</b></para>
 
104
<para style="space below"><b>Description of page:</b> This page should have two different frames at the bottom of the page displaying text, a big deepskyblue-coloured number "2" above it, and some header information above that.</para>
 
105
<para style="normal">This is the text for frame 3. This is the text for frame three.
 
106
This is the text for frame 3. This is the text for frame three.
 
107
This is the text for frame 3. This is the text for frame three. This is the text for frame three.
 
108
This is the text for frame 3. This is the text for frame three. This is the text for frame three. This is the text for frame three. This is the text for frame three.
 
109
This is the text for frame 3. This is the text for frame three.
 
110
This is the text for frame 3. This is the text for frame three. This is the text for frame three.
 
111
</para>
 
112
 
 
113
 
 
114
</story>
 
115
 
 
116
</document>