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

function reloadTree(treeId)
  {
      var tree = document.getElementById(treeId);
      var dsUrl=tree.getAttribute('datasources');
      tree.setAttribute('datasources', '');
      tree.setAttribute('datasources', dsUrl);
  }

 ]]></script>
  <hbox>
     <description>Exemple utilisable uniquement avec Mozilla 1.7a et supérieur</description>
     <spacer flex="1" />
     <button label="Refresh" oncommand="reloadTree('tree')" />
  </hbox>
  <vbox flex="1">
   <tree id="tree" flex="1" flags="dont-build-content" 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="false"
         sortDirection="ascending"
         sort="rdf:http://dummy/rdf#id"/>
      <splitter class="tree-splitter"/>
      <treecol id="name" label="Name" flex="1"
        class="sortDirectionIndicator" sortActive="true"
        sortDirection="ascending"
        sort="rdf:http://dummy/rdf#name"/>
     </treecols>
     <template>
       <treechildren>
         <treeitem uri="rdf:*">
           <treerow>
             <treecell label="rdf:http://dummy/rdf#id"/>
             <treecell label="rdf:http://dummy/rdf#name"/>
           </treerow>
         </treeitem>
       </treechildren>
     </template>
   </tree>
  </vbox>
</window>
