axf:reverse-diagonal-border-color

(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 Borders >> Diagonal Border

The axf:reverse-diagonal-border-color specifies the color of the reverse diagonal border.

Value:<color>
Initial:the value of the 'color' property
Applies to:all elements which can have borders
Inherited:yes
Percentages:N/A

XSL-FO sample:

<fo:root xml:lang="en" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">

Antenna House, Inc.

Drawing a diagonal border

A diagonal border can be drawn in a region such as a table cell where you can specify a border. A diagonal border by axf:diagonal-border-* is a line between the vertexes on the sides of before-start and after-end of the region, and that (reverse diagonal border) of axf:reverse-diagonal-border-* is a line between vertexes on the sides of before-start and after-end of the region.

How to use diagonal border in fo:table

An example of specifying axf:diagonal-border-color="black", axf:diagonal-border-style="solid", and axf:diagonal-border-width="1pt" in a cell of 1st raw of 1st column in the table.

Sales month

Group

January

February

March

Group A

58.4%

68.2%

92.0%

Group B

67.0%

70.7%

88.2%

Group C

87.0%

72.3%

95.2%

Reverse diagonal border

An example of specifying axf:reverse-diagonal-border-style="solid", axf:reverse-diagonal-border-width="4pt", and axf:reverse-diagonal-border-color="#2222FF" in block-container and drawing a reverse diagonal border.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Integer ut porttitor felis, vel tincidunt velit. Duis volutpat, quam quis aliquet tristique, nulla dui malesuada velit, et consectetur tellus ipsum et arcu. Ut tincidunt lorem erat, at elementum nibh varius consectetur. Sed viverra metus quis nibh pulvinar, at dignissim nibh adipiscing. Duis sit amet ipsum non elit tincidunt sagittis ac non tortor. Mauris commodo, elit a imperdiet interdum, nulla velit viverra elit, at scelerisque urna est eget lacus. Integer eu lobortis neque. Donec malesuada sed arcu vitae fringilla.

Download der Beispiele

Output:

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