start-indent, end-indent;

• block-progression-dimension;

• border-collapse;

• border-separation;

• break-after;

• break-before;

• id;

• inline-progression-dimension;

• height;

• keep-together;

• keep-with-next;

• keep-with-previous;

• relative-position;

• table-layout;

• table-omit-footer-at-break;

• table-omit-header-at-break;

• width;

• writing-mode;

Как видно из листинга 11.5, таблица tables.fo начинается с <fo:table>:

<fo:table>

 .

 .

 .

</fo:table>

Следующий шаг в создании таблицы — задать столбцы таблицы при помощи <fo:table- column>.

Создание столбцов таблицы: <fo:table-column>

Для каждого столбца в таблице нужно включить один элемент <fo:table-column>. Этот элемент позволяет задать характеристики ячеек в одном и том же столбце таблицы. Одно из самых важных свойств здесь — свойство column-width, определяющее ширину каждого столбца.

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

• общие свойства границ, заполнения и заднего фона: 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;

• column-number;

• column-width;

• number-columns-repeated;

• number-columns-spanned;

• visibility.

В tables.fo я установил для каждого столбца одинаковую ширину, 30 мм:

<fo:table>

 <fo:table-column column-width='30mm'/>

 <fo:table-column column-width='30mm'/>

 <fo:table-column column-width='30mm'/>

 <fo:table-column column-width='30mm'/>

 <fo:table-column column-width='30mm'/>

 <fo:table-column column-width='30mm'/>

 .

 .

 .

</fo:table>

После задания каждого столбца создается тело таблицы.

Создание тел таблицы: <fo:table-body>

Тело таблицы (table body) содержит фактическое содержимое таблицы; тела создаются при помощи элемента <fo:table-body>. Этот элемент содержит элементы <fo:table- row>, которые, в свою очередь содержат элементы <fo:table-cell>, содержащие данные таблицы.

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

• общие свойства границ, заполнения и заднего фона: 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;

• id;

• relative-position.

Как можно видеть в листинге 11.5, для создания тела таблицы в tables.fo я использовал <fo:table-body>:

<fo:table>

 <fo:table-column column-width='30mm'/>

Вы читаете XSLT
Добавить отзыв
ВСЕ ОТЗЫВЫ О КНИГЕ В ИЗБРАННОЕ

0

Вы можете отметить интересные вам фрагменты текста, которые будут доступны по уникальной ссылке в адресной строке браузера.

Отметить Добавить цитату