Вход/Регистрация
XSLT
вернуться

Холзнер Стивен

Шрифт:

• общие свойства границ, заполнения и заднего фона:

background-attachment
,
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
;

• общие свойства встроенных полей:

space-end
,
space-start
;

•

alignment-adjust
;

•

baseline-identifier
;

•

baseline-shift
;

•

dominant-baseline
;

•

id
;

• 

keep-with-next
;

•

keep-with-previous
;

•

letter-spacing
;

•

line-height
;

•

line-height-shift-adjustment
;

•

relative-position
;

•

score-spaces
;

•

text-decoration
;

•

text-shadow
;

•

text-transform
;

•

word-spacing
.

Пример применения номеров страниц будет показан при обсуждении последовательностей страниц в конце этой главы.

Вставка графики: <fo:external-graphic>

Популярный элемент при форматировании XSL-FO —

<fo:external-graphic>
, при помощи которого можно вставить в документ рисунок.

С элементом

<fo:external-graphic>
можно применять следующие свойства:

• общие свойства доступа:

source-document
,
role
;

• общие звуковые свойства:

azimuth
,
cue-after
,
cue-before
,
elevation
,
pause-after
,
pause-before
,
pitch
,
pitch-range
,
play-during
,
richness
,
speak
,
speak-header
,
speak-numeral
,
speak-punctuation
,
speech-rate
,
stress
,
voice-family
,
volume
;

• общие свойства границ, заполнения и заднего фона:

background-attachment
,
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
;

• общие свойства встроенных полей:

space-end
,
space-start
;

•

alignment-adjust
;

•

baseline-identifier
;

•

baseline-shift
;

•

block-progression-dimension
;

•

content-height
;

•

content-type
;

•

content-width
;

•

dominant-baseline
;

•

height
;

•

id
;

•

inline-progression-dimension
;

•

keep-with-next
;

•

keep-with-previous
;

•

line-height
;

•

line-height-shift-adjustment
;

•

relative-position
;

•

overflow
;

•

scaling
;

•

scaling-method
;

•

src
;

•

width
.

Как в HTML, можно устанавливать размер рисунка в документе — в XSL-FO для этого служат свойства

content-height
,
content-width
и
scaling
; если их не задать, рисунок будет отображен в своем первоначальном размере. Следующий пример,
graphics.fo
(листинг 12.4), отображает рисунок,
xslfo.jpg
, и подпись к нему:

Листинг 12.4. graphics.fo

<?xml version="1.0" encoding="UTF-8"?>

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

 <fo:layout-master-set>

<fo:simple-page-master margin-right="20mm" margin-left="20mm"

margin-bottom="10mm" margin-top="10mm" page-width="300mm"

page-height="400mm" master-name="page">

<fo:region-body margin-right="0mm" margin-left="0mm"

  • Читать дальше
  • 1
  • ...
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • ...

Ебукер (ebooker) – онлайн-библиотека на русском языке. Книги доступны онлайн, без утомительной регистрации. Огромный выбор и удобный дизайн, позволяющий читать без проблем. Добавляйте сайт в закладки! Все произведения загружаются пользователями: если считаете, что ваши авторские права нарушены – используйте форму обратной связи.

Полезные ссылки

  • Моя полка

Контакты

  • chitat.ebooker@gmail.com

Подпишитесь на рассылку: