tdf:resource

Get sequence of WebDAV resources.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

tdf:resource(xs:string $path, xs:string $depth) => sequence

Description

The function tdf:resource is specific to Tamino and its WebDAV functionality. It looks for WebDAV resources on the specified path given the lookup depth and returns a sequence of matching documents.

Arguments

$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 the Tamino IDs of all direct descendant resources of my/path:

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