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

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

Шрифт:

.

</fo:block>

Чтобы создать текст сноски, появляющийся внизу страницы, нужно применить элемент

<fo:footnote-body>
внутри элемента
<fo:footnote>
. Сам процессор fop не нумерует сноски, поэтому за добавление номеров сносок отвечаете вы:

<fo:block font-size="24pt">

 This

 <fo:footnote>

<fo:inline>footnote

<fo:inline font-size="16pt" vertical-align="super">

1

</fo:inline>

</fo:inline>

<fo:footnote-body>

<fo:block>

1. Here's the first footnote's text.

</fo:block>

</fo:footnote-body>

 </fo:footnote>

 refers to text at the bottom of this page.

</fo:block>
 

Этот код на XSL-FO создает и первый текст со сносками на рис. 12.4, и сам текст первых сносок, показанный на рис. 12.5.

Создание ссылок: <fo:basic-link>

Еще одним мощным средством XSL-FO является возможность использовать ссылки от документа к документу. В данный момент эта возможность поддерживается в процессоре fop при помощи элемента XSL-FO

<fo:basic-link>
, который действует во многом похоже на обычную гиперссылку. С элементом
<fo:basic-link>
можно применять следующие свойства:

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

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
;

• общие свойства относительного расположения:

top
,
right
,
bottom
,
left
,
relative-position
;

•

alignment-adjust
;

•

alignment-baseline
;

•

baseline-shift
;

•

destination-placement-offset
;

•

dominant-baseline
;

•

external-destination
;

•

id
;

•

indicate-destination
;

•

internal-destination
;

•

keep-together
;

•

keep-with-next
;

•

keep-with-previous
;

•

line-height
;

•

line-height-shift-adjustment
;

•

show-destination
;

•

target-processing-context
;

•

target-presentation-context
;

•

target-stylesheet
.

Следующий пример,

links.fo
(листинг 12.6), содержит ссылку на документ PDF, созданный ранее в этой главе,
graphics.pdf
.

Листинг 12.6. links.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
  • ...
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • ...

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

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

  • Моя полка

Контакты

  • chitat.ebooker@gmail.com

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