LIBEXSLT(3) Library Functions Manual LIBEXSLT(3)

# [NAME](#NAME)

libexslt - extension library for XSLT

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;libexslt/exslt.h&gt;**

**void exsltCommonRegister(void);**  
**void exsltDateRegister(void);**  
**void exsltDynRegister(void);**  
**void exsltFuncRegister(void);**  
**void exsltMathRegister(void);**  
**void exsltSetsRegister(void);**  
**void exsltStrRegister(void);**  
**void exsltRegisterAll(void);**  
**void exsltSaxonRegister(void);**

# [DESCRIPTION](#DESCRIPTION)

The **libexslt** library is used to provide extensions to XSLT functions. These extensions come from the EXSLT project &lt;http://www.exslt.org/&gt;

# [USAGE](#USAGE)

To make use of these functions in XSLT the appropriate namespace must be defined on the **xsl:stylesheet** element. To enable support for them in [**libxslt**(3)](/man/os/libxslt/libxslt.3) you must call the appropriate functions (listed in the **SYNOPSIS** section) to register the extensions. The *xslt-config* shell script can be used to obtain the necessary flags for the pre-processor and linker. The supported extensions are:

## [COMMON](#COMMON)

[Namespace: http://exslt.org/common](#Namespace:)

[See http://www.exslt.org/exsl/index.html for a description.](#See)

[**node-set()**](#node-set%28%29)

convert the given RTF into a node-set.

[**object-type()**](#object-type%28%29)

returns the type of the given argument.

[**document**](#document)

Create multiple output documents. See http://www.exslt.org/exsl/elements/document/index.html

## [MATH](#MATH)

[Namespace: http://exslt.org/math](#Namespace:~2)

[See http://www.exslt.org/math/index.html for a description.](#See~2)

[**min()**](#min%28%29)

returns the minimum value of the given node-set

[**max()**](#max%28%29)

returns the maximum value of the given node-set

[**highest()**](#highest%28%29)

returns the nodes in the node-set whose value is the maximum value for the node-set.

[**lowest()**](#lowest%28%29)

returns the nodes in the node-set whose value is the minimum value for the node-set.

[**constant()**](#constant%28%29)

returns a number value of the given constant with the given precision. The constants are PI, E, SQRRT2, LN2, LN10, LOG2E, and SQRT1\_2.

[**random()**](#random%28%29)

returns a random number between 0 and 1 inclusive.

[**abs()**](#abs%28%29)

returns the absolute value of the argument.

[**sqrt()**](#sqrt%28%29)

returns the square root of the argument.

[**power()**](#power%28%29)

returns the power base and power arguments.

[**log()**](#log%28%29)

returns the natural log of the argument.

[**sin()**](#sin%28%29)

returns the sine of the argument.

[**cos()**](#cos%28%29)

returns the cosine of the argument.

[**tan()**](#tan%28%29)

returns the tangent of the argument.

[**asin()**](#asin%28%29)

returns the arc sine of the argument.

[**acos()**](#acos%28%29)

returns the arc cosine of the argument.

[**atan()**](#atan%28%29)

returns the arc tangent of the argument.

[**atan2()**](#atan2%28%29)

returns the arc tangent function of the y/x arguments.

[**exp()**](#exp%28%29)

returns the exponential function of the argument.

## [SETS](#SETS)

[Namespace: http://exslt.org/sets](#Namespace:~3)

[See http://www.exslt.org/set/index.html for a description.](#See~3)

[**difference()**](#difference%28%29)

returns the difference between the two given node-sets.

[**intersection()**](#intersection%28%29)

returns a node-set of the nodes within both given node-sets.

[**distinct()**](#distinct%28%29)

returns a node-set of all nodes in the first argument that are not in the seconds argument.

[**has-same-node()**](#has-same-node%28%29)

returns TRUE if there is an intersection between the two given node-sets.

[**leading()**](#leading%28%29)

returns a node-set of all nodes in the first argument that precede the first node in the second argument.

[**trailing()**](#trailing%28%29)

returns a node-set of all nodes in the first argument that follow the first node in the second argument.

## [DATES and TIMES](#DATES_and_TIMES)

[Namespace: http://exslt.org/dates-and-times](#Namespace:~4)

[See http://www.exslt.org/date/date.html for a description.](#See~4)

[**date-time()**](#date-time%28%29)

returns the current date and time as a date/time string.

[**date()**](#date%28%29)

returns the date specified in the given date/time string.

[**time()**](#time%28%29)

returns the time specified in the date/time string given as the argument.

[**year()**](#year%28%29)

returns the year of a date as a number.

[**leap-year()**](#leap-year%28%29)

returns true if the year given in a date is a leap year.

[**month-in-year()**](#month-in-year%28%29)

returns the month of a date as a number.

[**month-name()**](#month-name%28%29)

returns the full name of the month of a date.

[**month-abbreviation()**](#month-abbreviation%28%29)

returns the abbreviation of the month of a date.

[**week-in-year()**](#week-in-year%28%29)

returns the week of the year as a number.

[**week-in-month()**](#week-in-month%28%29)

returns the week in a month of a date as a number.

[**day-in-year()**](#day-in-year%28%29)

returns the month of a date as a number.

[**day-in-month()**](#day-in-month%28%29)

returns the day of a date as a number.

[**day-of-week-in-month()**](#day-of-week-in-month%28%29)

returns the day-of-the-week in a month of a date as a number.

[**day-in-week()**](#day-in-week%28%29)

returns the day of the week given in a date as a number.

[**day-name()**](#day-name%28%29)

returns the full name of the day of the week of a date.

[**day-abbreviation()**](#day-abbreviation%28%29)

returns the abbreviation of the day of the week of a date.

[**hour-in-day()**](#hour-in-day%28%29)

returns the hour of the day as a number.

[**minute-in-hour()**](#minute-in-hour%28%29)

returns the minute of the hour as a number.

[**second-in-minute()**](#second-in-minute%28%29)

returns the second of the minute as a number.

[**seconds()**](#seconds%28%29)

returns the number of seconds specified by the argument string.

[**add()**](#add%28%29)

returns the date/time resulting from adding a duration to a date/time.

[**add-duration()**](#add-duration%28%29)

returns the duration resulting from adding two given durations together.

[**difference()**](#difference%28%29~2)

returns the duration between the first date and the second date.

[**duration()**](#duration%28%29)

returns a duration string that represents the given number of seconds since 1970-01-01T00:00:00.

## [STRINGS](#STRINGS)

[Namespace: http://exslt.org/strings](#Namespace:~5)

[See http://www.exslt.org/str/index.html for a description.](#See~5)

[**tokenize()**](#tokenize%28%29)

returns a node set of token elements, each containing one token from the string.

[**padding()**](#padding%28%29)

returns a string padded to a certain length.

[**align()**](#align%28%29)

returns a string aligned within another string.

[**concat()**](#concat%28%29)

returns the concatenation of the string values of the nodes in that node set.

## [FUNCTIONS](#FUNCTIONS)

[Namespace: http://exslt.org/functions](#Namespace:~6)

[See http://www.exslt.org/func/index.html for a description.](#See~6)

[**function**](#function)

declares an extension function.

[**result**](#result)

returns the result of an extension function declared in function().

# [FILES](#FILES)

*/usr/bin/xslt-config*

shell script giving pre-processor and linker flags.

*/usr/lib/libexslt.a*

static library

*/usr/lib/libexslt.so*

sharable library

# [AUTHORS](#AUTHORS)

Manual page by Heiko W. Rupp (hwr@pilhuhn.de)

# [SEE ALSO](#SEE_ALSO)

[**libxml**(3)](/man/os/libxslt/libxml.3), [**libxslt**(3)](/man/os/libxslt/libxslt.3), [**xmllint**(1)](/man/os/libxslt/xmllint.1) [**xsltproc**(1)](/man/os/libxslt/xsltproc.1),

04 November 2003 libxslt

---

Document: libexslt(3) from libxslt 1.1.45-r4 (Chainguard OS)
Source: https://gitlab.gnome.org/GNOME/libxslt.git
