Earlier, we showed the creation of a library module consisting of two user-defined functions, total-price and titleQuantity. Once the library module is imported, the user-defined functions defined in the module are available by right-clicking the XQuery Mapper canvas and choosing User Defined Functions from the short-cut menu.