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
The abs function returns the absolute value of its numeric argument. If the argument is negative, its negation is returned. | |
B
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. | |
C
The ceiling function returns the smallest integer not less than its argument. | |
F
The floor function returns the greatest integer not greater than its argument. | |
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. | |
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. | |
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. | |
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. | |
I
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. | |
L
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. | |
M
The max function returns the larger of its two numeric arguments. | |
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. | |
The min function returns the smaller of its two numeric arguments. | |
P
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>. | |
R
The rgb function returns a specific color from the RGB color spectrum. | |
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. | |
The round function returns the integer nearest to its argument. | |
S
The system-color function returns a system-defined color with the specified name. | |
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. | |