fn:collection

Return an input sequence from a specified collection.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

fn:collection(string $srcval) => node*

Description

This function returns a sequence of document nodes of all documents in a Tamino collection. The collection must be defined in the current database.

Argument

$srcval

The name of the collection in the current database. It must be a string literal.

Example

  • Get the characters that are used as delimiter characters in the current database:

    declare namespace ino="http://namespaces.softwareag.com/tamino/response2"
    for    $a in collection("ino:vocabulary")/ino:transliteration/ino:character
    where  $a/@ino:class eq "delimiter"
    return $a