24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Transforming Documents | 308Figure 133: XProc Transformation results viewIntegration of an External XProc EngineThe 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:1. Take the oxygen.jar from [<strong>Oxygen</strong>-install-folder]/lib and put it in the lib folder of your project.2. Implement the ro.sync.xml.transformer.xproc.api.XProcTransformerInterface interface.3. Create a new Java archive (jar) from the classes you created.4. Create a new engine.xml file according with the engine.dtd file. The attributes of the engine element havethe following meanings:1. name - The name of the XProc engine.2. description - A short description of the XProc engine.3. class - The complete name of the class that implementsro.sync.xml.transformer.xproc.api.XProcTransformerInterface.4. version - The version of this integration.5. engineVersion - The version of the integrated engine.6. vendor - The name of the vendor / implementor.7. supportsValidation - true if the engine supports validation, false otherwise.The engine element has only one child, runtime. The runtime element contains several library elementswho's name attribute contains the relative or absolute location of the libraries necessary to run this integration.5. Create a new folder with the name of the integration in the [<strong>Oxygen</strong>-install-folder]/lib/xproc.6. Put there the engine.xml, and all the libraries necessary to run the new integration.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!