Data types and functions

The expression language handles boolean values, numeric values, strings and nodes. A number of functions are supplied to transform data items from one type to another, and to compare, manipulate and analyze them.

Functions

Functions perform a specific operation and return a value. A return value effectively replaces the function at its position within the expression. Functions have names that represent their purpose, such as 'round' and 'string-length', followed by brackets:

						function()
					

In most cases, functions operate on supplied information, passed to the function as comma-separated parameters placed within the brackets:

						function(parameter1, parameter2)
					

There are a number of functions available to support each of ...

Get XSL companion, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.