title: Custom control: dropdown values from XML file
body: <p>Here is my custom control:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;xbl:xbl xmlns:xhtml="http://www.w3.org/1999/xhtml"
           xmlns:xforms="http://www.w3.org/2002/xforms"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:ev="http://www.w3.org/2001/xml-events"
           xmlns:xi="http://www.w3.org/2001/XInclude"
           xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
           xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
           xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
           xmlns:saxon="http://saxon.sf.net/"
           xmlns:xbl="http://www.w3.org/ns/xbl"&gt;
  
      &lt;metadata xmlns="http://orbeon.org/oxf/xml/form-builder"&gt;
          &lt;display-name lang="en"&gt;Custom Controls&lt;/display-name&gt;
      &lt;/metadata&gt;
  
      &lt;xbl:binding id="fb-input-country-selector" element="xforms|country-selector"&gt;
          &lt;metadata xmlns="http://orbeon.org/oxf/xml/form-builder"&gt;
              &lt;display-name lang="en"&gt;Country Selector&lt;/display-name&gt;
              &lt;icon lang="en"&gt;
                  &lt;small-icon&gt;/forms/orbeon/builder/images/dropdown.png&lt;/small-icon&gt;
                  &lt;large-icon&gt;/forms/orbeon/builder/images/dropdown.png&lt;/large-icon&gt;
              &lt;/icon&gt;
              &lt;datatype&gt;xforms:string&lt;/datatype&gt;
              &lt;template&gt;
                  &lt;xforms:select1 id="" appearance="minimal" ref="" xmlns=""&gt;
                      &lt;xforms:label ref=""/&gt;
                      &lt;xforms:hint ref=""/&gt;
                      &lt;xforms:help ref=""/&gt;
                      &lt;xforms:alert ref="$fr-resources/detail/labels/alert"/&gt;
                      &lt;xforms:item&gt;
                          &lt;xforms:label&gt;[Select...]&lt;/xforms:label&gt;
                          &lt;xforms:value/&gt;
                      &lt;/xforms:item&gt;
                      &lt;xforms:itemset nodeset="doc('oxf:/apps/xforms-controls/services/countries.xml')/countries/country"&gt;
                          &lt;xforms:label ref="name"/&gt;
                          &lt;xforms:value ref="us-code"/&gt;
                      &lt;/xforms:itemset&gt;
                  &lt;/xforms:select1&gt;
              &lt;/template&gt;
          &lt;/metadata&gt;
      &lt;/xbl:binding&gt;
  &lt;/xbl:xbl&gt;
  </code></pre>
  
  <p>The problem is that the data items are not grabbed from the XML, but if I introduce the template itself in the form structure, it works.</p>
  
  <p>Anyone have any ideea?</p>