title: Zkoss using template in zhtml
body: <p>Good day. Here is my zhtml</p>
  <pre><code>&lt;x:html xmlns=&quot;http://www.zkoss.org/2005/zul&quot;
          xmlns:x=&quot;xhtml&quot;
          src=&quot;/components/public-page-template.html&quot;&gt;
    &lt;div viewModel=&quot;@id('vm') @init('TestViewModel')&quot;&gt;
      &lt;div children=&quot;@init(vm.testList)&quot;&gt;
        &lt;template name=&quot;children&quot;&gt;
          &lt;checkbox label=&quot;@load(each)&quot;/&gt;
        &lt;/template&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/x:html&gt;
  </code></pre>
  <p>And view model</p>
  <pre><code>public class TestViewModel {
    public List&lt;String&gt; getTestList(){
      return List.of(&quot;one&quot;, &quot;two&quot;, &quot;three&quot;);
    }
  }
  </code></pre>
  <p>I expect to see 3 checkboxes in rendered html, but I get 3 spans</p>
  <pre><code>&lt;div id=&quot;mXBQ2&quot; class=&quot;z-div&quot;&gt;
    &lt;div id=&quot;mXBQ3&quot; class=&quot;z-div&quot;&gt;
      &lt;span id=&quot;mXBQ4&quot; class=&quot;z-label&quot;&gt;one&lt;/span&gt;
      &lt;span id=&quot;mXBQ5&quot; class=&quot;z-label&quot;&gt;two&lt;/span&gt;
      &lt;span id=&quot;mXBQ6&quot; class=&quot;z-label&quot;&gt;three&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>No matter what I put inside template I get 3 spans, template is completely ignored. But if change zhtml to zul</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;?variable-resolver class=&quot;org.zkoss.spring.DelegatingVariableResolver&quot; ?&gt;
  
  &lt;div xmlns=&quot;http://www.zkoss.org/2005/zul&quot; viewModel=&quot;@id('vm') @init('TestViewModel')&quot;&gt;
    &lt;div children=&quot;@load(vm.testList)&quot;&gt;
      &lt;template name=&quot;children&quot;&gt;
        &lt;checkbox label=&quot;@load(each)&quot;/&gt;
      &lt;/template&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>then template is working as expected and I see 3 checkboxes in result html.</p>
  <p>How can I make template work in my zhtml?</p>