Loading TOC...

xdmp and sem functions (Extension)

The extension functions provide miscellaneous extensions to XQuery .

68 functions
Function nameDescription
sem:resolve-iriResolves a relative URI against an absolute URI.
xdmp:add64Add two 64-bit integer values, discarding overflow.
xdmp:and64AND two 64-bit integer values.
xdmp:atomizableReturns true if a value could be atomized without error.
xdmp:base64-decodeConverts base64-encoded string to plaintext.
xdmp:base64-encodeConverts plaintext into base64-encoded string.
xdmp:binary-decodeConverts an encoded byte sequence, passed in as a binary node, from the specified encoding to a unicode string.
xdmp:binary-to-integerParses a binary string, returning an integer.
xdmp:caller-dialectReturns the dialect (e.g., "javascript", "1.0-ml", etc) of the caller or the empty sequence if no dialect information is available.
xdmp:castable-asReturns true if a value is castable.
xdmp:cryptCalculates the password hash for the given password and salt.
xdmp:crypt2Calculates the password hash for the given plain-text password.
xdmp:decode-from-NCNameInvertible function that decodes characters an NCName produced by xdmp:encode-for-NCName.
xdmp:document-get-collectionsReturns the collections to which a given document belongs.
xdmp:document-get-metadataReturns the metadata value of a given document.
xdmp:document-get-metadata-valueReturns the metadata value of a given document.
xdmp:eagerReturns the value of its argument, evaluated eagerly.
xdmp:element-content-typeReturns the schema-defined content-type of an element ("empty", "simple", "element-only", or "mixed").
xdmp:emailSend an email in an XQuery program.
xdmp:encode-for-NCNameInvertible function that escapes characters required to be part of an NCName.
xdmp:encoding-language-detectAnalyzes binary, text, or XML data and suggests possible pairs of encoding and language, with a confidence score for each pair.
xdmp:hash32Returns the 32-bit hash of a string.
xdmp:hash64Returns the 64-bit hash of a string.
xdmp:hex-to-integerParses a hexadecimal string, returning an integer.
xdmp:hmac-md5Calculates the Hash-based Message Authentication Code (HMAC) using the md5 hash function of the given secret key and message arguments.
xdmp:hmac-sha1Calculates the Hash-based Message Authentication Code (HMAC) using the SHA1 hash function of the given secret key and message arguments.
xdmp:hmac-sha256Calculates the Hash-based Message Authentication Code (HMAC) using the SHA256 hash function of the given secret key and message arguments.
xdmp:hmac-sha512Calculates the Hash-based Message Authentication Code (HMAC) using the SHA512 hash function of the given secret key and message arguments.
xdmp:initcapReturns the string where the first letter of each token has been uppercased.
xdmp:integer-to-binaryReturns a binary representation of an integer.
xdmp:integer-to-hexReturns a hexadecimal representation of an integer.
xdmp:integer-to-octalReturns an octal representation of an integer.
xdmp:is-whitespace-nodeReturns true if the node is a text node containing only whitespace.
xdmp:key-from-QNameConstruct a context-independent string from a QName.
xdmp:lazyReturns the value of its argument, evaluated lazily.
xdmp:ldap-lookupReturns an ldap entry.
xdmp:ldap-searchReturns ldap search result.
xdmp:lshift64Left-shift a 64-bit integer value.
xdmp:md5Calculates the md5 hash of the given argument.
xdmp:mul64Muliply two 64-bit integer values, discarding overflow.
xdmp:multipart-decodeExtract the parts from a multipart encoding.
xdmp:multipart-encodeCreate a multipart encoding of the specified node.
xdmp:node-kindReturns an xs:string representing the node's kind: either "document", "element", "attribute", "text", "namespace", "processing-instruction", "binary", or "comment".
xdmp:node-metadataReturns the metadata value of a given node.
xdmp:node-metadata-valueReturns the metadata value of a node for a particular key.
xdmp:not64NOT a 64-bit integer value.
xdmp:octal-to-integerParses an octal string, returning an integer.
xdmp:or64OR two 64-bit integer values.
xdmp:parse-dateTimeParses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value.
xdmp:parse-yymmddParses a string containing date, time or dateTime using the supplied picture argument and returns a dateTime value.
xdmp:positionReturns an integer value representing the starting position of a string within the search string.
xdmp:QName-from-keyConstruct a QName from a string of the form "{namespaceURI}localname".
xdmp:randomReturns a random unsigned integer between 0 and a number up to 64 bits long.
xdmp:resolve-uriResolves a relative URI against an absolute URI.
xdmp:rshift64Right-shift a 64-bit integer value.
xdmp:set-response-output-methodSets the serialization method.
xdmp:sha1Calculates the SHA1 hash of the given argument.
xdmp:sha256Calculates the SHA256 hash of the given argument.
xdmp:sha384Calculates the SHA384 hash of the given argument.
xdmp:sha512Calculates the SHA512 hash of the given argument.
xdmp:sleepDelays for a specific amount of time.
xdmp:step64Combines an initial hash with a subsequent hash.
xdmp:strftimeFormats a dateTime value using POSIX strftime.
xdmp:timestamp-to-wallclockConverts a 64 bit timestamp value to an xs:dateTime.
xdmp:typeReturns the name of the simple type of the atomic value argument as an xs:QName.
xdmp:user-last-loginReturns the last-login node for the current user.
xdmp:wallclock-to-timestampConverts an xs:dateTime to a 64 bit timestamp value.
xdmp:xor64XOR two 64-bit integer values.
Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy