Choose the proper RNG schema depending on the nodetype of the node.