XPath/XQuery Functions: Miscellaneous
The following general purpose XPath/XQuery extension functions are supported in the current version of RaptorXML Server and can be used in (i) XPath expressions in an XSLT context, or (ii) XQuery expressions in an XQuery document.
Altova extension functions can be used in XPath/XQuery expressions. They provide additional functionality to the functionality that is available in the standard library of XPath, XQuery, and XSLT functions. Altova extension functions are in the Altova extension functions namespace, https://www.altova.com/xslt-extensions, and are indicated in this section with the prefix altova:, which is assumed to be bound to this namespace. Note that, in future versions of your product, support for a function might be discontinued or the behavior of individual functions might change. Consult the documentation of future releases for information about support for Altova extension functions in that release.
altova:decode-string(Input as xs:base64Binary) as xs:string XP3.1 XQ3.1
altova:decode-string(Input as xs:base64Binary, Encoding as xs:string) as xs:string XP3.1 XQ3.1
Decodes the submitted base64Binary input to a string using the specified encoding. If no encoding is specified, then the UTF-8 encoding is used. The following encodings are supported: US-ASCII, ISO-8859-1, UTF-16, UTF-16LE, UTF-16BE, ISO-10646-UCS2, UTF-32, UTF-32LE, UTF-32BE, ISO-10646-UCS4
altova:encode-string(InputString as xs:string) as xs:base64Binaryinteger XP3.1 XQ3.1
altova:encode-string(InputString as xs:string, Encoding as xs:string) as xs:base64Binaryinteger XP3.1 XQ3.1
Encodes the submitted string using, if one is given, the specified encoding. If no encoding is given, then the UTF-8 encoding is used. The encoded string is converted to base64Binary characters, and the converted base64Binary value is returned. Initially, UTF-8 encoding is supported, and support will be extended to the following encodings: US-ASCII, ISO-8859-1, UTF-16, UTF-16LE, UTF-16BE, ISO-10646-UCS2, UTF-32, UTF-32LE, UTF-32BE, ISO-10646-UCS4
altova:get-temp-folder() as xs:string XP2 XQ1 XP3.1 XQ3.1
This function takes no argument. It returns the path to the temporary folder of the current user.
altova:generate-guid() as xs:string XP2 XQ1 XP3.1 XQ3.1
Generates a unique string GUID string.
altova:high-res-timer() as xs:double XP3.1 XQ3.1
Returns a system high-resolution timer value in seconds. A high-resolution timer, when present on a system, enables high precision time measurements when these are required (for example, in animations and for determining precise code-execution time). This function provides the resolution of the system's high-res timer.
altova:parse-html(HTMLText as xs:string) as node() XP3.1 XQ3.1
The HTMLText argument is a string that contains the text of an HTML document. The function creates an HTML tree from the string. The submitted string may or may not contain the HTML element. In either case, the root element of the tree is an element named HTML. It is best to make sure that the HTML code in the submitted string is valid HTML.
altova:sleep(Millisecs as xs:integer) as empty-sequence() XP2 XQ1 XP3.1 XQ3.1
Suspends execution of the current operation for the number of milliseconds given by the Millisecs argument.
[ Top ]