As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
I think the line "<#assign dom=${name}.xmlNodeModel>" is useless, have you seen this page : http://freemarker.org/docs/dgui_quickstart_basics.html an this one : http://freemarker.sourceforge.net/docs/xgui_imperative_learn.html ?
Assume that the programmer has put the XML document into the data-model as variable doc.