Steps
This leaves the following three simple steps to implement custom behavior:
- Implement a new class that descends from ITPElement or one of its descendants, most likely: ITPQuestion.
- Make sure that the source implementing this class also registers the mapping between the class type and the proper element type.
- Redefine the xslt template producePageScript to include the newly created JavaScript source. Make sure that this source is the last one to be included. This is the only way in which the registration can take preference over any other registration for the element type.