uses simple variable name to access the functions. The following code snippet shows Groovy syntax for invocation of function
norm in library identified by variable
basic. The variable names used as library handles are pre-defined. They are specified in the following text.
basic.norm('Guľôčka v jamôčke!')
- Invocation for XML-based languages (XPath) which uses XML namespace to access the functions. Usual namespace and namespece prefix handling applies. Following XML snippet illustrates invocation of function
normin a library identified by namespace URI
<script xmlns:libb="http://midpoint.evolveum.com/xml/ns/public/function/basic-2"> <language>http://www.w3.org/TR/xpath/</language> <code> libb:norm('Guľôčka v jamôčke!') </code> </script>
Basic function library provides very basic functions for string operations, object property retrieval, etc. These are simple, efficient stand-alone functions.