tdf:getProperty

Get single WebDAV property of a document.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

tdf:getProperty(documentroot $resource, xs:string $uri, xs:string $localName) => xs:string

Description

The function tdf:getProperty is specific to Tamino and its WebDAV functionality. It retrieves all properties of a document stored as WebDAV resource in Tamino. This corresponds to the WebDAV request PROPFIND.

Argument

$resource

WebDAV resource which is a document root in Tamino

$uri

namespace URI of the WebDAV property

$localName

local name of the WebDAV property

Examples

  • Show all documents in the collection ino:dav that use the content type "text/xml". The content type is stored in the WebDAV property getcontenttype.

    declare namespace ino="http://namespaces.softwareag.com/tamino/response2"
    for    $x in collection("ino:dav")
    where tdf:getProperty($x, "DAV:", "getcontenttype") = "text/xml"
    return $x