XML technologies / XSL-FO / Reference / Functions in XSL-FO

(Excerpt from "XSL-FO ― Die Referenz" by 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

This page lists the functions in XSL-FO, with links to their descriptions and code examples.

A

abs

The abs function returns the absolute value of its numeric argument. If the argument is negative, its negation is returned.

back to top

B

body-start

The body-start function returns the computed list value determined by the provisional- distance-between-starts attribute. In <fo:list-block>, this specifies the left indent of the list item body. When the function is used in <fo:list-item-body> as the value of the attribute start-indent, the value specified by provisional-distance- between-starts is used.

back to top

C

ceiling

The ceiling function returns the smallest integer not less than its argument.

back to top

F

floor

The floor function returns the greatest integer not greater than its argument.

from-nearest-specified-value

The from-nearest-specified-value function returns a computed property value from the nearest ancestor of the specified element. If the name is omitted, it uses the property for which the expression is evaluated.

from-page-master-region

The from-page-master-region function (XSL 1.1) transfers the values of the writing-mode and reference-orientation properties of a page sequence <fo:page-sequence> to one of its descendant regions.

from-parent

The from-parent function returns a computed property value from the parent of the specified element. If the name is omitted, it uses the property for which the expression is evaluated. If there is no parent element, the initial value is returned.

from-table-column

The from-table-column function transfers the computed value of a specified property from <fo:table-column> via a reference in <fo:table-cell> or, if the name is omitted, for the property for which the expression is evaluated.

back to top

I

inherited-property-value

The inherited-property-value function returns the inherited value of the named property. If the name is omitted, it returns the inherited value of the property for which the expression is evaluated.

back to top

L

label-end

The label-end function returns the computed list value determined by the provisional-label- separation attribute. In <fo:list-block>, this specifies the minimum space between the list label and the list item body. When the function is used in <fo:list-item-label> as the value of the attribute end-indent, the value specified by provisional-label-separation is used.

back to top

M

max

The max function returns the larger of its two numeric arguments.

merge-property-values

The merge-property-values function returns the value of the specified property set or, if the name is omitted, of the last <fo:multi-property-set> element. If no such value exists, the computed value of the parent element <fo:multi-properties> is returned.

min

The min function returns the smaller of its two numeric arguments.

back to top

P

proportional-column-width

The proportional-column-width function calculates the proportional table column width. The table width multiplied by the numeric proportional value is divided by the sum of the proportional factors specified for column widths in the data. The result is used as the column-width value in <fo:table-column>.

back to top

R

rgb

The rgb function returns a specific color from the RGB color spectrum.

rgb-icc

The rgb-icc function returns a specific color from an ICC color profile. The fourth parameter names the profile. The first three parameters specify a fallback RGB color used if the profile is unavailable. The profile color is determined by a sequence of one or more real-valued color components after the name parameter. Syntax variations and restrictions may depend on the formatter.

round

The round function returns the integer nearest to its argument.

back to top

S

system-color

The system-color function returns a system-defined color with the specified name.

system-font

The system-font function returns a characteristic of a system font. The first argument names the system font; the optional second argument names the property that determines the characteristic. If the second argument is omitted, the returned characteristic is the one named by the property to which the expression is assigned.

back to top

back to top