[NTG-context] define macro from xml-attribute