Check for WebDAV resource on given path.
The following construct(s) refer to this construct:
tdf:isDescendantOf(documentroot $resource, xs:string $path, xs:string $depth) => bool
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
.
$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:
|
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")