tdf:isDescendantOf

Check for WebDAV resource on given path.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

tdf:isDescendantOf(documentroot $resource, xs:string $path, xs:string $depth) => bool

Description

The function tdf:isDescendantOf is specific to Tamino and its WebDAV functionality. It checks whether the WebDAV resource is found on the specified path given the lookup depth. If the resource is found, true is returned, otherwise false.

Argument

$resource

WebDAV resource which is a document root in Tamino

$path

relative WebDAV path in Tamino

$depth

restricts depth of resource lookup; valid values are:

Value Meaning

"0" resource itself
"1" direct descendants
"infinity" all descendants (default value)

Examples

  • Return boolean values for all resources in collection ino:dav that are on the relative path my/path:

    declare namespace ino="http://namespaces.softwareag.com/tamino/response2"
    for    $x in collection("ino:dav")
    return tdf:isDescendantOf($x, "/ino:dav/ino:dav/my/path", "1")