The Javadoc documentation of the XProc API is available for download
from
the application website as a zip file: xprocAPI.zip. In order to create an XProc
integration project
you
can follow the next steps:
Take the oxygen.jar from
[Oxygen-install-folder]/lib and put it in the
lib folder of your project.
Implement the
ro.sync.xml.transformer.xproc.api.XProcTransformerInterface
interface.
Create a new Java archive (jar) from the classes you created.
Create a new engine.xml file according with the
engine.dtd file. The attributes of the engine
element
have the following meanings:
name - The name of the XProc engine.
description - A short description of the XProc engine.
class - The complete name of the class that implements
ro.sync.xml.transformer.xproc.api.XProcTransformerInterface.
version - The version of this integration.
engineVersion - The version of the integrated engine.
vendor - The name of the vendor / implementor.
supportsValidation - true if the engine
supports validation, false otherwise.
The engine
element
has only one child, runtime. The runtime
element
contains several library elements who's
name
attribute
contains the relative or absolute location of the libraries necessary
to run this integration.
Create a new folder with the name of the integration in the
[Oxygen-install-folder]/lib/xproc.
Put there the engine.xml, and all the libraries necessary to run
the
new integration.