Database Reference
In-Depth Information
3. For a default setup (see Figure 14-4 ), you only have to change the user to admin
and fill in the password. Then click the OK button.
Figure 14-4. Adding an eXist-db XML connection to oXygen
As you can see when you're back on the Data Sources setup screen, oXygen cre‐
ated not only a data source for eXist but also an accompanying connection. So,
we're ready to go!
4. Click the OK button on all dialogs and open the Data Source Explorer (the Win‐
dow→Show View→Data Source Explorer menu item). And there it is: your
native eXist connection, also called eXist-db localhost .
Now, this looks like you've opened another WebDAV connection to eXist. However,
a native connection allows you to do much more (in describing this, we assume you
know the basics of oXygen, like creating validation and transformation scenarios; if
not, refer to its excellent help facilities):
• As soon as you've created an eXist connection, you'll notice your XQuery editor
has become more intelligent: for instance, type xmldb: and press Ctrl-Space, and
the list of eXist XMLDB XQuery extension module functions pops up.
• You can validate an XQuery file using the eXist validator instead of the Saxon
one used by default in oXygen. This gives you the benefit of the validator know‐
ing, for instance, all eXist XQuery extension functions and so it will not show
your file as invalid when it makes use of those. To do this, open an XQuery file
and create a validation scenario that uses the eXist native connection you just
created as its validation engine (see Figure 14-5 ).
 
Search WWH ::




Custom Search