Skip to Content
eXist
book

eXist

by Erik Siegel, Adam Retter
December 2014
Beginner
584 pages
15h 13m
English
O'Reilly Media, Inc.
Content preview from eXist

Chapter 7. Extension Modules

eXist has a large number of extension modules built in that allow you to do lots of wonderful things you can’t do with straight XQuery, such as manipulate the database contents, inspect an HTTP request, encrypt/decrypt data, and perform XSLT transformations. This chapter will provide you with an overview of the module mechanism in general. An overview of the available modules can be found in Appendix A.

Types of Extension Modules

Extension modules come in two flavors, which you need to be aware of because they behave differently in eXist. The module descriptions in Extension Module Descriptions will tell you the module type. We will also explain how to find out the module type yourself in Enabling Extension Modules.

Extension Modules Written in Java

Extension modules written in Java are fully integrated in eXist. You don’t even have to put an import module statement in your XQuery code to use them. Most of the eXist core functionality you use regularly is Java based (e.g., xmldb, request, transform, response, and util).

For instance, when you want to find out the eXist home directory by calling system:get-exist-home, you can simply do this in your code without an import module statement for the system module. However, some people like to have this explicitly spelled out, so they could add:

import module namespace system="http://exist-db.org/xquery/system";

Not all Java modules present are enabled by default. Even worse, some of them are not even built in (compiled ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Design of Everyday Things

The Design of Everyday Things

Donald A. Norman
The Goal

The Goal

Eliyahu M. Goldratt, Jeff Cox
Accelerate

Accelerate

Nicole Forsgren, Jez Humble, Gene Kim

Publisher Resources

ISBN: 9781449337094Errata Page