EXSLT modules available?

Which EXSLT modules are currently implemented in origam as namespace? I only know about dates and times module.

All should be supported and then some (which are non-standard and I couldn’t find documentation for, these are with the shortcut ending with 2, e.g. “str2”).

A quick list taken from here:

  • math
  • date
  • regexp
  • str
  • set
  • random
  • date2
  • math2
  • regexp2
  • set2
  • str2
  • dyn2

So it should work, but when I try to add for example math namespace to transformation definition and wants to use any function e.g. math:random(), I get an error during transformation validation.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
	xmlns:AS="http://schema.advantages.cz/AsapFunctions"
	xmlns:date="http://exslt.org/dates-and-times"
	xmlns:math="http://exslt.org/math"
    exclude-result-prefixes="AS date math">
	<xsl:template match="ROOT">
		<ROOT>
		<xsl:attribute name="test"><xsl:value-of select="math:random()"/></xsl:attribute>
		</ROOT>
	</xsl:template>
</xsl:stylesheet>

error message in output window in architect:

Cannot find a script or an extension object associated with namespace 'http://exslt.org/math'.
Transformation result invalid.
Exception happened during transformation. See inner exception for details:

Cannot find a script or an extension object associated with namespace 'http://exslt.org/math'.