<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<vbox flex="1" style="overflow: auto;">
<tree rows="10"
datasources="test_rdf.php" flex="1" id="ds_records"
onclick="this.builder.refresh();"
sortResource="urn:record#field_id" sortDirection="ascending"
ref="urn:record:all"
containment="urn:record#list">
<!-- need to help mozilla template engine by identifying container element -->
<treecols>
<treecol label="Name" primary="true" flex="1"/>
<splitter class="tree-splitter"/>
<treecol label="Amount" flex="1"/>
</treecols>
<template>
<rule>
<treechildren>
<treeitem uri="rdf:*" open="true">
<treerow>
<treecell label="rdf:urn:record#field_name"/>
<treecell label="rdf:urn:record#field_amount"/>
</treerow>
</treeitem>
</treechildren>
</rule>
</template>
</tree>
</vbox>
</window>
|