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. In case 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 Mac OS X. Restart Oxygen XML Developer after configuring the environment variables.
  2. Go to menu Preferences > 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.