How to Import a Library Module

You can import a library module from the source editor of your main module.

To import a library module:

  1. Make sure that your XQuery main module map file is open in the XQuery Mapper.
  2. Click the XQuery Source tab at the bottom left of the XQuery Mapper window to switch to the source editor.
  3. Right-click anywhere in the source editor window. A context menu appears.
  4. Select Import library module from the context menu. The Select XQuery Library Files dialog appears.
  5. Browse and select the XQuery library module file to be imported. Click OK.

    An import statement, corresponding to the library module, is added to the main module source view.