How to Configure an XQJ Data Source

Any transformer that offers an XQJ API implementation can be used when validating XQuery or transforming XML documents. An example of an XQuery engine that implements the XQJ API is Zorba.

  1. If your XQJ Implementation is native, make sure the directory containing the native libraries of the engine is added to your system environment variables: to PATH - on Windows, to LD_LIBRARY_PATH - on Linux, or to DYLD_LIBRARY_PATH - on OS X. Restart Oxygen XML Developer after configuring the environment variables.
  2. Open the Preferences dialog box (Options > Preferences) and go to Data Sources.
  3. Click the New button in the Data Sources panel.
  4. Enter a unique name for the data source.
  5. Select XQuery API for Java(XQJ) in the Type combo box.
  6. Press the Add button to add XQJ API-specific files.
    You can manage the driver files using the Add, Remove, Detect, and Stop buttons.
    Oxygen XML Developer detects any implementation of javax.xml.xquery.XQDataSource and presents it in Driver class field.
  7. Select the most suited driver in the Driver class combo box.
  8. Click the OK button to finish the data source configuration.