<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="test.css" type="text/css"?>
<window
    id="sample_win"
    height="200 px"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <script type="application/x-javascript"><![CDATA[

function reloadTree(treeId)
  {
     try {
      tree = document.getElementById(treeId);
      tree.builder.rebuild();

    }
    catch(e) {
      alert(e);
    }
  }
  ]]></script>
  <button label="Refresh" oncommand="reloadTree('tree')" />
   <tree id="tree" flex="1" ref="urn:data:row" datasources="http://xulfr.org/sources/exemple_php_rdf/create_rdf.php">
     <treecols>
       <treecol id="id" label="Id" primary="true" flex="1"
         class="sortDirectionIndicator" sortActive="true"
         sortDirection="ascending"
         sort="rdf:http://dummy/rdf#id"/>
      <splitter class="tree-splitter"/>
      <treecol id="name" label="Name" flex="1"
        class="sortDirectionIndicator" sortActive="false"
        sortDirection="ascending"
        sort="rdf:http://dummy/rdf#name"/>
     </treecols>
     <template>
       <treechildren>
         <treeitem uri="rdf:*">
           <treerow>
             <treecell class="machin" label="rdf:http://dummy/rdf#id"/>
             <treecell label="rdf:http://dummy/rdf#name"/>
           </treerow>
         </treeitem>
       </treechildren>
     </template>
   </tree>
</window>
