Document Developer - instructions > XPath > StoryTeller XPath functions

StoryTeller XPath functions
In addition to the standard libxml2 XPath library you have access to the following functions:
 
generate-id()
current()
XSL function that returns the selected node in a Repeater, regardless of current context in the XPath expression.
strs-current-position()
strs-current-last()
Returns the position of the last node. Useful if a condition in a repeater should be based on the position of the last node. See Example 56 for an example of an XPath set on a repeater.
Example 56
The following XPath expression instantiates a "," separator after all items but the last one.
Items: {item:<description> = <value>{self::*[strs-current-position() = str-current-last()]:,}}
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26