1LIBEXSLT(3) Library Functions Manual LIBEXSLT(3)
2
3
4
6 libexslt - extension library for XSLT
7
9 #include <libexslt/exslt.h>
10
11 void exsltCommonRegister(void);
12 void exsltDateRegister(void);
13 void exsltDynRegister(void);
14 void exsltFuncRegister(void);
15 void exsltMathRegister(void);
16 void exsltSetsRegister(void);
17 void exsltStrRegister(void);
18 void exsltRegisterAll(void);
19 void exsltSaxonRegister(void);
20
22 The libexslt library is used to provide extensions to XSLT functions.
23 These extensions come from the EXSLT project <http://www.exslt.org/>
24
26 To make use of these functions in XSLT the appropriate namespace must
27 be defined on the xsl:stylesheet element. To enable support for them
28 in libxslt(3) you must call the appropriate functions (listed in the
29 SYNOPSIS section) to register the extensions. The xslt-config shell
30 script can be used to obtain the necessary flags for the pre-processor
31 and linker. The supported extensions are:
32
33 COMMON
34 Namespace: http://exslt.org/common
35
36 See http://www.exslt.org/exsl/index.html for a description.
37
38 node-set() convert the given RTF into a node-set.
39
40 object-type() returns the type of the given argument.
41
42 document Create multiple output documents. See
43 http://www.exslt.org/exsl/elements/docu‐
44 ment/index.html
45
46
47 MATH
48 Namespace: http://exslt.org/math
49
50 See http://www.exslt.org/math/index.html for a description.
51
52 min() returns the minimum value of the given node-set
53
54 max() returns the maximum value of the given node-set
55
56 highest() returns the nodes in the node-set whose value is
57 the maximum value for the node-set.
58
59 lowest() returns the nodes in the node-set whose value is
60 the minimum value for the node-set.
61
62 constant() returns a number value of the given constant with
63 the given precision. The constants are PI, E,
64 SQRRT2, LN2, LN10, LOG2E, and SQRT1_2.
65
66 random() returns a random number between 0 and 1 inclu‐
67 sive.
68
69 abs() returns the absolute value of the argument.
70
71 sqrt() returns the square root of the argument.
72
73 power() returns the power base and power arguments.
74
75 log() returns the natural log of the argument.
76
77 sin() returns the sine of the argument.
78
79 cos() returns the cosine of the argument.
80
81 tan() returns the tangent of the argument.
82
83 asin() returns the arc sine of the argument.
84
85 acos() returns the arc cosine of the argument.
86
87 atan() returns the arc tangent of the argument.
88
89 atan2() returns the arc tangent function of the y/x argu‐
90 ments.
91
92 exp() returns the exponential function of the argument.
93
94
95 SETS
96 Namespace: http://exslt.org/sets
97
98 See http://www.exslt.org/set/index.html for a description.
99
100 difference() returns the difference between the two given
101 node-sets.
102
103 intersection() returns a node-set of the nodes within both given
104 node-sets.
105
106 distinct() returns a node-set of all nodes in the first
107 argument that are not in the seconds argument.
108
109 has-same-node() returns TRUE if there is an intersection between
110 the two given node-sets.
111
112 leading() returns a node-set of all nodes in the first
113 argument that precede the first node in the sec‐
114 ond argument.
115
116 trailing() returns a node-set of all nodes in the first
117 argument that follow the first node in the second
118 argument.
119
120
121 DATES and TIMES
122 Namespace: http://exslt.org/dates-and-times
123
124 See http://www.exslt.org/date/date.html for a description.
125
126 date-time() returns the current date and time as a date/time
127 string.
128
129 date() returns the date specified in the given date/time
130 string.
131
132 time() returns the time specified in the date/time
133 string given as the argument.
134
135 year() returns the year of a date as a number.
136
137 leap-year() returns true if the year given in a date is a
138 leap year.
139
140 month-in-year() returns the month of a date as a number.
141
142 month-name() returns the full name of the month of a date.
143
144 month-abbreviation() returns the abbreviation of the month of a date.
145
146 week-in-year() returns the week of the year as a number.
147
148 week-in-month() returns the week in a month of a date as a num‐
149 ber.
150
151 day-in-year() returns the month of a date as a number.
152
153 day-in-month() returns the day of a date as a number.
154
155 day-of-week-in-month()
156 returns the day-of-the-week in a month of a date
157 as a number.
158
159 day-in-week() returns the day of the week given in a date as a
160 number.
161
162 day-name() returns the full name of the day of the week of a
163 date.
164
165 day-abbreviation() returns the abbreviation of the day of the week
166 of a date.
167
168 hour-in-day() returns the hour of the day as a number.
169
170 minute-in-hour() returns the minute of the hour as a number.
171
172 second-in-minute() returns the second of the minute as a number.
173
174 seconds() returns the number of seconds specified by the
175 argument string.
176
177 add() returns the date/time resulting from adding a
178 duration to a date/time.
179
180 add-duration() returns the duration resulting from adding two
181 given durations together.
182
183 difference() returns the duration between the first date and
184 the second date.
185
186 duration() returns a duration string that represents the
187 given number of seconds since
188 1970-01-01T00:00:00.
189
190
191 STRINGS
192 Namespace: http://exslt.org/strings
193
194 See http://www.exslt.org/str/index.html for a description.
195
196 tokenize() returns a node set of token elements, each con‐
197 taining one token from the string.
198
199 padding() returns a string padded to a certain length.
200
201 align() returns a string aligned within another string.
202
203 concat() returns the concatenation of the string values of
204 the nodes in that node set.
205
206
207 FUNCTIONS
208 Namespace: http://exslt.org/functions
209
210 See http://www.exslt.org/func/index.html for a description.
211
212 function declares an extension function.
213
214 result returns the result of an extension function
215 declared in function().
216
218 /usr/bin/xslt-config
219 shell script giving pre-processor and linker flags.
220
221 /usr/lib/libexslt.a
222 static library
223
224 /usr/lib/libexslt.so
225 sharable library
226
228 Manual page by Heiko W. Rupp (hwr@pilhuhn.de)
229
231 libxml(3), libxslt(3), xmllint(1) xsltproc(1),
232
233
234
235libxslt 04 November 2003 LIBEXSLT(3)