LibraryModule

Provide XQuery fragment to other modules.


Syntax

LibraryModule

graphics/LibraryModule.png

ModuleDecl Pragma Prolog

Description

A LibraryModule is one form of an XQuery module and contains XQuery code. It consists of a module declaration followed by a prolog which may be preceded by a pragma. In contrast to a main module a library module is not evaluated directly: it just provides the declarations of functions and variables which can later be imported into other modules. Especially it does not include a query body since that is reserved to the main module only.

Related Syntax Construct

The following construct(s) refer to this construct:

This construct is also related to the following construct(s):

ElementConstructor