, background-color
, background-image
, background-repeat
, background-position- horizontal
, background-position-vertical
, border-before-color
, border-before-style
, border-before-width
, border-after-color
, border-after-style
, border-after-width
, border-start-color
, border-start-style
, border-start-width
, border-end-color
, border-end-style
, border-end-width
, border-top-color
, border-top-style
, border-top-width
, border-bottom-color
, border-bottom-style
, border-bottom-width
, border-left-color
, border-left-style
, border-left-width
, border-right-color
, border-right-style
, border-right-width
, padding-before
, padding-after
, padding-start
, padding-end
, padding-top
, padding-bottom
, padding-left
, padding-right
;• общие свойства шрифта:
font-family
, font-size
, font-stretch
, font-size-adjust
, font-style
, font-variant
, font-weight
;• общие свойства переноса:
country
, language
, script
, hyphenate
, hyphenation-character
, hyphenation-push-character-count
, hyphenation-remain-character-count
;• общие свойства полей для блоков:
margin-top
, margin-bottom
, margin-left
, margin-right
, space-before
, space-after
, start-indent
, end-indent
;•
break-after
;•
break-before
;•
color
;•
font-height-override-after
;•
font-height-override-before
;•
hyphenation-keep
;•
hyphenation-ladder-count
;•
id
;•
keep-together
;•
keep-with-next
;•
keep-with-previous
;•
last-line-end-indent
;•
linefeed-treatment
;•
line-height
;•
line-height-shift-adjustment
;•
line-stacking-strategy
;•
orphans
;•
relative-position
;•
space-treatment
;•
span
;•
text-align
;•
text-align-last
;•
text-indent
;•
visibility
;•
white-space-collapse
;•
widows
;•
wrap-option
;•
z-index
.Например, я могу добавить в документ заголовок «The Planets Table» (Таблица планет), задав шрифт
Times
(в данный момент fop поставляется с встроенными шрифтами Times
, Helvetica
, Courier
, Symbol
, sans-serif
, serif
и ZapfDingbats
) в свойстве font-family
, размер шрифта 36 пунктов в свойстве font-size
и полужирный стиль, установив свойство font-weight
в «bold
». Высоту блока я задам при помощи свойства line-height
и покажу заголовок голубым при помощи свойства color
:
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
.
.
.
line-height="48pt" font-family="Times" color="blue">
The Planets Table
.
.
.
Этот код создаст блок заголовка, который показан в верхней части текста на рис. 11.1. Таким способом я могу создать аналогичные блоки для каждого элемента данных каждой планеты при помощи таблицы стилей XSLT. Заметьте также, что я вывожу имя каждой планеты курсивом, установив свойство
font-style
в «italic», и я подчеркиваю остальной текст при помощи свойства text-decoration
элементов
, которые мы рассмотрим в следующей главе:
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
.
.
.
.
.
.
line-height="48pt" font-family="Times" font-style="italiс">
Planet:
Mass
:
[Earth = 1]
.
.
.
Вот и все. Вы создали свое первое преобразование из XML в XSL-FO, преобразовав