aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples/fo/link.fo
blob: 2c74a8a92751043d585a241ddd4dd603ddc01e53 (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
<?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>
    <fo:simple-page-master master-name="first" 
                           page-height="29.7cm" page-width="21cm" 
                           margin-top="1cm" 
                           margin-bottom="2cm" 
                           margin-left="2.5cm" 
                           margin-right="2.5cm">
      <fo:region-before extent="3cm"/>
      <fo:region-body margin-top="3cm"/>
      <fo:region-after extent="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <!-- end: defines page layout -->

  <!-- actual layout -->
  <fo:page-sequence master-name="first">

    <!-- text body -->
    <fo:flow flow-name="xsl-body">

      <!-- Normal text -->
      <fo:block text-align="center">0. Normal text without link
      </fo:block>


      <!-- Normal text -->
      <fo:block text-align="center"
                font-family="serif">1. <fo:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>

      <!-- Normal text -->
      <fo:block text-align="center">---</fo:block>

      <!-- Normal text -->
      <fo:block text-align="center">
        2. A one line example (text-align='start'): <fo:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>

      <!-- Normal text -->
      <fo:block text-align="center">---</fo:block>

      <!-- Normal text -->
      <fo:block text-align="start" hyphenate="true">
        3. A multiline text (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:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>

      <!-- Normal text -->
      <fo:block text-align="center">---</fo:block>

      <!-- Normal text -->
      <fo:block text-align="center">
        4. A multiline text (text-align='centered'). 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:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>

      <!-- Normal text -->
      <fo:block text-align="center">---</fo:block>

      <!-- Normal text -->
      <fo:block text-align="end">
        5. A multiline text (text-align='end'). 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:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>

      <!-- Normal text -->
      <fo:block text-align="center">---</fo:block>

      <!-- Normal text -->
      <fo:block text-align="start"
                space-before.optimum="6pt" 
                line-height="24pt"
                font-family="serif"
                padding-top="3pt"
                >
        6. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
        enable <fo:simple-link external-destination="normal.pdf">generic</fo:simple-link> 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:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>

      <!-- Normal text -->
      <fo:block text-align="start"
                space-before.optimum="6pt" 
                line-height="24pt"
                font-family="serif"
                padding-top="3pt"
                >
        7. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif, padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
        enable <fo:simple-link external-destination="normal.pdf">generic</fo:simple-link> 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:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>


      <!-- Normal text -->
<!--      <fo:block text-align="start"
                space-before.optimum="6pt" 
                line-height="24pt"
                font-family="serif"
                padding-top="3pt"
                >
        8. A multiline text (text-align='start', space-before.optimum=6pt, font-family=serif, padding-top="3pt"). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
        enable <fo:simple-link external-destination="normal.pdf">generic</fo:simple-link> 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:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
      </fo:block>
-->


    </fo:flow>
  </fo:page-sequence>
</fo:root>