Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

EXSLT is a set of extensions to XSLT. There are a number of modules; those that are supported by Firefox are listed below:

Common (exsl)
Provides basic extension elements and functions.
Math (math)
Provides routines for comparing nodes.
Regular expressions (regexp)
Provides facilities for using regular expressions in JavaScript syntax.
Sets (set)
Provides routines for manipulating sets.
Strings (str)
Provides functions for string manipulation.

Using EXSLT

To use an EXSLT function, you need to declare the namespace the function is in, and then use the appropriate prefix when calling the function. For example, to use the regular expressions package:

<xsl:stylesheet version="1.0"
                xmlns:xsl="https://www.w3.org/1999/XSL/Transform"
                xmlns:regexp="https://exslt.org/regular-expressions">
  <xsl:template match="/">
    ...
    <xsl:value-of select="regexp:replace(/root/@value, 'before', 'gi', 'AFTER')"/>
    ...
  </xsl:template>

</xsl:stylesheet>

Common

The EXSLT Common package provides basic functions that expand upon the capabilities of XSLT. The namespace for the Common package is https://exslt.org/common.

Functions

Math

The EXSLT Math package provides functions for working with numeric values and comparing nodes. The namespace for the Math package is https://exslt.org/math.

Functions

Regular expressions

The EXSLT Regular Expressions package provides functions that allow testing, matching, and replacing text using JavaScript style regular expressions.

The EXSLT Regular Expressions namespace is https://exslt.org/regular-expressions.

Functions

Sets

The EXSLT Sets package offers functions that let you perform set manipulation. The namespace for these functions is https://exslt.org/sets.

Functions

Strings

The EXSLT Strings package provides functions that allow the manipulation of strings. The namespace for the Strings package is https://exslt.org/strings.

Functions

See also


Document Tags and Contributors

 Contributors to this page: Sheppy, Sicking, Ptak82, Jwp, Potappo, Mgjbot
 Last updated by: Sheppy,