Currently there is no good way to change the selection, e.g. to select one node.
Clicking on a node should change the selection to that node. I.e. the path of the selection should go to its parent, the anchor should be the index of the node, and the focus should be the anchor + 1.
Clicking on a drop zone should change the selection to its position in a tree. I.e., the path should be to the dropzone's parent and the focus and anchor should both equal the index of the dropzone.
Once this is done we can look at applying templates via clicks.
Currently there is no good way to change the selection, e.g. to select one node.
Once this is done we can look at applying templates via clicks.