Watson Explorer Engine XSL Extensions
Note: Watson™ Explorer Engine XSL extensions have a prefix and namespace of viv for
historical reasons.
The Watson Explorer Engine XSL extensions are divided into multiple classes. A complete alphabetical listing is available Alphabetical List. Functional classes are the following:
- Current Object State: various functions used to get information about the current Watson Explorer object state (viv:current-node, viv:current-query, viv:repository-get, viv:authenticated-user, or viv:authenticated-user-node).
- Date & Time: functions complementing the ones offered by the EXSLT date extensions, providing capabilities such as the ability to parse a string and extract dates by guessing the date extension format.
- Key Match: functions used to perform advanced key matches.
- Nodes: Functions used to manipulate nodes (complementing the EXSLT set extensions).
- Search Engine: functions available during the conversion step of a search collection creation (currently, this consists of a single function that adds a URL to be crawled).
- Strings: string manipulation functions (complementing the EXSLT string extensions), to match, test, and replace regular expressions; to convert UTF-8 to lowercase, uppercase, or mixed case letters; to concatenate the values in the expression; to tokenize a string; or to do different types of normalizations.
- Syntax: convenient functions that enable you to write more compact XSL by using XSL extensions such as viv:if-else, viv:choose, viv:set, and viv:get.
- URLs: URL manipulation functions that enable you to manipulate URLs in various ways, such as decomposing the URL into useful components, converting a relative URL to a fully-qualified URL, or appending one or more name-value pairs to a URL.
- Version: functions to return the current version and check if the current version is newer than a specified version for Watson Explorer Engine.
- Watson Explorer Object: functions that enable you to allocate and destroy a Watson Explorer object, add XML to an object, and return the state of an object..