4.5. Transformation of the document subset

Transformation of the document is done by the module DocTransformation. The transformation should be started after validating the document.

Tasks:

Before the document can be transformed, a lookup-table is built on the basis of the DTD which maps element names to their transformation functions. The transformation functions are XmlFilter functions, which take a node and return the transformed node. After the initialization phase the whole document is traversed in preorder and every element is transformed by its transformation filter from the lookup-table. The result is a new, transformed XmlTree.