>
line-height="48pt" font-family="Times" color="blue">
The Planets Table
line-height="48pt" font-family="Times"
font-style="italic">
Planet:
font-family="Times">
Mass
:
[Earth = 1]
font-family="Times">
Day
:
[Earth = 1]
font-family="Times">
Radius
:
miles
font-family="Times">
Density
:
[Earth = 1]
font-family="Times">
Distance
:
million miles
После применения этой таблицы стилей для преобразования
planets.xsl
будет получен файл planets.fo
, который при помощи форматирующих объектов XSL-FO создает документ с видом, показанным на рис. 11.1. Вот как выглядит planets.fo
(листинг 11.3).Листинг 11.3. planets.fo
margin-left="20mm" margin-bottom="10mm"
margin-top="10mm" page-width="300mm"
page-height="400mm" master-name="page">
margin-bottom="10mm" margin-top="0mm"/>
line-height="48pt" font-size="36pt" font-weight="bold">
The Planets Table
line-height="48pt" font-size="28pt" font-weight="bold">
Planet:
Mercury
Mass
:
.0553
[Earth = 1]
Day
:
58.65
[Earth = 1]
Radius
:
1516
miles
Density
:
.983
[Earth = 1]
Distance
:
43.4
million miles
font-size="28pt" font-weight="bold">
Planet:
Venus
Mass
:
.815
[Earth = 1]
Day
:
116.75
[Earth = 1]
Radius
<