Scroll to navigation

LIBEXSLT(3) Library Functions Manual LIBEXSLT(3)

NAME

libexslt - extension library for XSLT

SYNOPSIS

#include <libexslt/exslt.h>

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

The libexslt library is used to provide extensions to XSLT functions. These extensions come from the EXSLT project <http://www.exslt.org/>

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) 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

http://exslt.org/common
http://www.exslt.org/exsl/index.html for a description.
convert the given RTF into a node-set.
returns the type of the given argument.
Create multiple output documents. See http://www.exslt.org/exsl/elements/document/index.html

MATH

http://exslt.org/math
http://www.exslt.org/math/index.html for a description.
returns the minimum value of the given node-set
returns the maximum value of the given node-set
returns the nodes in the node-set whose value is the maximum value for the node-set.
returns the nodes in the node-set whose value is the minimum value for the node-set.
returns a number value of the given constant with the given precision. The constants are PI, E, SQRRT2, LN2, LN10, LOG2E, and SQRT1_2.
returns a random number between 0 and 1 inclusive.
returns the absolute value of the argument.
returns the square root of the argument.
returns the power base and power arguments.
returns the natural log of the argument.
returns the sine of the argument.
returns the cosine of the argument.
returns the tangent of the argument.
returns the arc sine of the argument.
returns the arc cosine of the argument.
returns the arc tangent of the argument.
returns the arc tangent function of the y/x arguments.
returns the exponential function of the argument.

SETS

http://exslt.org/sets
http://www.exslt.org/set/index.html for a description.
returns the difference between the two given node-sets.
returns a node-set of the nodes within both given node-sets.
returns a node-set of all nodes in the first argument that are not in the seconds argument.
returns TRUE if there is an intersection between the two given node-sets.
returns a node-set of all nodes in the first argument that precede the first node in the second argument.
returns a node-set of all nodes in the first argument that follow the first node in the second argument.

DATES and TIMES

http://exslt.org/dates-and-times
http://www.exslt.org/date/date.html for a description.
returns the current date and time as a date/time string.
returns the date specified in the given date/time string.
returns the time specified in the date/time string given as the argument.
returns the year of a date as a number.
returns true if the year given in a date is a leap year.
returns the month of a date as a number.
returns the full name of the month of a date.
returns the abbreviation of the month of a date.
returns the week of the year as a number.
returns the week in a month of a date as a number.
returns the month of a date as a number.
returns the day of a date as a number.
returns the day-of-the-week in a month of a date as a number.
returns the day of the week given in a date as a number.
returns the full name of the day of the week of a date.
returns the abbreviation of the day of the week of a date.
returns the hour of the day as a number.
returns the minute of the hour as a number.
returns the second of the minute as a number.
returns the number of seconds specified by the argument string.
returns the date/time resulting from adding a duration to a date/time.
returns the duration resulting from adding two given durations together.
returns the duration between the first date and the second date.
returns a duration string that represents the given number of seconds since 1970-01-01T00:00:00.

STRINGS

http://exslt.org/strings
http://www.exslt.org/str/index.html for a description.
returns a node set of token elements, each containing one token from the string.
returns a string padded to a certain length.
returns a string aligned within another string.
returns the concatenation of the string values of the nodes in that node set.

FUNCTIONS

http://exslt.org/functions
http://www.exslt.org/func/index.html for a description.
declares an extension function.
returns the result of an extension function declared in function().

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

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

SEE ALSO

libxml(3), libxslt(3), xmllint(1) xsltproc(1),

04 November 2003 libxslt