(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category Line Numbering

The axf:line-number-reset resets line numbering. [no-LT]

Value:auto | none | page | column | force
Applies to:fo:page-sequence, fo:block

Values have the following meanings.

autoThe specification of previous fo:page-sequence is succeeded. When the previous fo:page-sequence does not exist, it will become none.
none Line numbers are not reset.
page Line numbers are reset when pages break.
column Line numbers are reset when columns break.
force Line numbers are reset forcibly. It can be specified to fo:block.

Line numbers are reset to the value specified to axf:line-number-initial.

CAUTION:force can be specified only to fo:block. On the contrary, other values cannot be specified to fo:block.

This property is not available with AH Formatter V6.3 Lite.

XSL-FO sample:

<fo:root xml:lang="en" xmlns:fo="" xmlns:cpfo="" xmlns:svg="" xmlns:axf="">

Antenna House, Inc.

Adding independent line numbers for each paragraph

The line number can be applied to every table paragraph independently by specifying axf:line-number to fo:table-column. At this time, the same settings that can be applyied to fo:page-sequence are available. In this example, line numbers are set for right and left paragraphs independently every 5 lines. The values are displayed without being reset per page.



これと同じようにPDF のファイルの中には、頭の中で考えた状態と同じような情報がプログラムへの「命令」として記述されている。

即ち、PDFファイルには1 枚の紙の左上を原点にして、下方向と右方向に座標軸をとってできる平面を定義し、その平面のどこに、どんな大きさで、なんという文字を書くか、どんな太さで、どんな種類(直線、点線、…)の線を引くか、どんな画像をどこにどんな大きさで配置するか、といった命令が1ページ毎に記録されている。

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer egestas, est et bibendum consequat, tortor mi sagittis odio, id adipiscing dui lorem ultricies velit. Nullam eu lacus sed elit mollis elementum. Nullam dolor lacus, pellentesque eget, adipiscing id, bibendum in, velit. Nullam purus. In porttitor, dui eget placerat pretium, mauris arcu ultrices nisl, quis mattis nisi turpis in velit. Cras et tellus quis nulla ultricies tristique. Ut at lacus at nibh cursus vestibulum. Praesent nec dui. Mauris bibendum, arcu eget aliquam imperdiet, arcu neque hendrerit sapien, in vulputate ipsum massa ut augue. Nulla at urna in diam posuere condimentum. Mauris ultricies facilisis tortor. Nunc bibendum condimentum nisl. Vivamus vehicula malesuada leo. Pellentesque eu nunc ac lectus viverra pretium. Nunc nibh purus, adipiscing et, vehicula vel, feugiat nec, elit. Praesent nisi. Sed tincidunt.

Aliquam erat volutpat. Aenean lacus. Suspendisse id ligula. Nulla facilisi. Sed et orci. Curabitur imperdiet odio non nisl. Sed mauris ante, laoreet eget, egestas ac, bibendum quis, quam. Nullam tincidunt vulputate leo. Cras orci purus, eleifend et, aliquet sed, tempor id, neque. Nam vulputate, tortor a congue pulvinar, pede lacus ornare erat, vel euismod felis tortor eu libero. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos.

Download der Beispiele


page 2

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: