WidgetChain inner = Chains.terminal();
if (!node.childNodes().isEmpty())
inner = Chains.singleton(new TextWidget(node.childNode(0).toString(), compiler));
chain.addWidget(new RequireWidget(new XmlWidget(inner, node.nodeName(), compiler,
HtmlTemplateCompiler.parseAttribs(node.attributes()))));
chain.addWidget(new RequireWidget(new XmlWidget(inner, node.nodeName(), compiler,
HtmlTemplateCompiler.parseAttribs(node.attributes()))));
chain.addWidget(new RequireWidget(new XmlWidget(inner, node.nodeName(), compiler,
HtmlTemplateCompiler.parseAttribs(node.attributes()))));