XQueryModule

Top-level XQuery syntax construct.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


    Syntax

    XQueryModule

    graphics/XQueryModule.png

    VersionDecl Pragma MainModule LibraryModule

    Description

    An XQueryModule is the top-level syntax construct in Tamino XQuery. A module is a fragment of XQuery code which either contains a prolog and the query body (main module) or it provides function and variable declarations (library module) that can be imported by other modules.

    Example

    • Any query, even as simple as

      input()

      is formally a fragment of XQuery code. So it implies an XQuery main module that has no query prolog, but a query body that reads input().