The present invention includes devices and methods to specify a document
transformation. A template specifies a transformation that is applied to
a document in a streaming mode, without building a full object tree in
memory representing the document.