net.sf.saxon.instruct
public static class CallTemplate.CallTemplatePackage extends Object implements TailCall
Constructor Summary | |
---|---|
CallTemplatePackage(Template template, ParameterSet params, ParameterSet tunnelParams, Instruction instruction, XPathContext evaluationContext)
Construct a CallTemplatePackage that contains information about a call. |
Method Summary | |
---|---|
TailCall | processLeavingTail()
Process the template call encapsulated by this package. |
Parameters: template the Template to be called params the parameters to be supplied to the called template tunnelParams the tunnel parameter supplied to the called template evaluationContext saved context information from the Controller (current mode, etc) which must be reset to ensure that the template is called with all the context information intact
Returns: another TailCall. This will never be the original call, but it may be the next recursive call. For example, if A calls B which calls C which calls D, then B may return a TailCall to A representing the call from B to C; when this is processed, the result may be a TailCall representing the call from C to D.
Throws: XPathException if a dynamic error occurs