String & Encoding
XSLT functions for string and encoding.
decode-url()
Decode the provided url.
decode-url(String encodedUrl)
encode-url()
Encode the provided url.
encode-url(String url)
hash()
hash(String value)
hash(String value, String algorithm)
hash(String value, String algorithm, String salt)
hash(String value)- Hash a string value using the defaultSHA-256algorithm and no salthash(String value, String algorithm)- Hash a string value using the specified hashing algorithm and no salt.hash(String value, String algorithm, String salt)- Hash a string value using the specified hashing algorithm and supplied salt value. The algorithm can be any digest algorithm supported by the Java runtime, e.g.SHA-256,SHA-512,MD5.
hex-to-dec()
Convert hex to dec representation.
hex-to-dec(String hex)
hex-to-oct()
Convert hex to oct representation.
hex-to-oct(String hex)
hex-to-string()
For a hexadecimal input string, decode it using the specified character set to its original form.
Valid character set names are listed at: https://www.iana.org/assignments/character-sets/character-sets.xhtml.
Common examples are: ASCII, UTF-8 and UTF-16.
Input
<string><xsl:value-of select="stroom:hex-to-string('74 65 73 74 69 6e 67 20 31 32 33', 'UTF-8')" /></string>
Output
<string>testing 123</string>
Last modified August 14, 2026: fix build (307b3f0)