GetDataValue('TemplateName',''); $template=null; if($templateName=='FieldSummary') { $template=new FieldSummaryTemplate(); } if($template==null) { $this->Node->Remove(); return; } $template->Initialize($this->Generator); $this->Node->AppendChild($template->GetHtml()); } }