The output of a template is a result tree fragmentu.
The outputs of individual templates are placed to the result tree fragment, in the order corresponding to the application order.
The output is usually generated as a stream of events (eg. SAX2), which are subsequently converted to the resulting document (using specified encoding etc.).