Processing model
template rule = pattern + template
|
Construction of result tree fragment:
- the source tree is processed by processing the root
- a single node is processed by
- finding the template rule with the best matching pattern
- instantiating its template
(creates fragment + continues processing recursively)
- a node list is processed by processing each node in order
current node: the node currently being processed
current node list: the node list currently being processed
(used for evaluation context later)