A RELAX NG schema can declare a custom datatype library for the values of elements in the instance XML documents. The datatype library must be implemented in Java and must implement the interface specified on the www.thaiopensource.com website.
The jar file containing the custom library and any other dependent jar file must be
added to the classpath of the application, that is
the jar files must be added to the folder [Oxygen-plugin-folder]/lib
and a line
<library name="lib/custom-library.jar"/> must be added for
each jar file to the file [Oxygen-plugin-folder]/plugin.xml
in the
<runtime> element.
The Eclipse platform must be restarted for loading the custom library.