The API supports standard implementations of Java™ API for XML Processing (JAXP) input and result types.
The XSourceResolver.getSource method can return any of the above implementations of source as well as a further implementation, XItemSource, provided by the API. This allows results from a previous query or transformation to be used as input to a new query or transformation without first serializing to a DOM or stream. The XItemSource can simply be initialized with the XItemView instance and returned by the XSourceResolver implementation.
A further implementation of the Result interface, XSequenceCursorResult, is provided by the API to allow a result to be returned as an XSequenceCursor. The execute methods on the executable objects that do not take a result object return the result as an XSequenceCursor already; therefore, this is primarily for use with XSLT multiple result documents. An implementation of XResultResolver can return an XSequenceCursorResult to the processor and the processor will populate the XSequenceCursorResult with the XSequenceCursor and the associated output parameters during processing. After the transformation is complete the XSequenceCursor can be retrieved by the application by calling the getSequenceCursor method on the XSequenceCursorResult object. The output parameters can be retrieved by calling the getOutputParameters method. The output parameters then can be used on a call to the XSequenceCursor exportSequence method.