XSLT Functions

Custom XSLT functions available in Stroom.

Stroom provides a set of custom functions for use in your XSLT translations. To use them, include the stroom namespace in your stylesheet:

xmlns:stroom="stroom"

E.g.

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet
    xmlns="event-logging:3"
    xmlns:stroom="stroom"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="2.0">

A function is then called with that prefix, e.g. stroom:format-date(...).

The functions are grouped as follows.


Date & Time

XSLT functions for date and time.

Stream & Source

XSLT functions for stream and source.

Reference Data

XSLT functions for reference data.

Networking & URI

XSLT functions for networking and uri.

String & Encoding

XSLT functions for string and encoding.

HTTP & JSON

XSLT functions for http and json.

Output & Logging

XSLT functions for output and logging.

Values & Context

XSLT functions for values and context.

Maths & Vectors

XSLT functions for maths and vectors.

Last modified August 14, 2026: fix build (307b3f0)