The various Xerces specific classes extend where needed the built in data types. The Xerces specific classes are only in the test suite and aren't generally available. Their source code can be viewed. Adopters will need to add appropriate handling for the various Facets of simpletype, like enumerations, min values, length, etc. This is currently beyond the scope of the PsychoPath processors implementation.

This is the bare bones minimum that is needed by a user defined constructor that leverages Xerces-J for the XML Schema Model. Every User Defined simple data type will need a constructor and it must extend the CtrType class or one of the classes that already extends it (i.e. one of the built in datatypes). There are test suite examples for User Defined functions that extend or restrict QName, Float, and Integer.

Making PsychoPath Aware:

So the final key is making sure that the processor is aware of the namespace and the library to use during processing. This is handled by adding the information to the DynamicContext.