Loading TOC...

xdmp.castableAs

xdmp.castableAs(
   $namespace-uri as String,
   $local-name as String,
   $item as String?
) as Boolean

Summary

Returns true if a value is castable. This is similar to the "castable as" XQuery predicate, except that the type is determined at runtime.

Parameters
$namespace-uri The namespace URI of the type.
$local-name The local-name of the type.
$item The item to be cast.

Example

xdmp.castableAs(
    "http://www.w3.org/2001/XMLSchema",
    "integer",
    "12")
=> true()

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy