gecko-dev/directory/xpcom/tests/example.xul

57 lines
1.5 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window title="LDAP Manager Prototype"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<tree datasources="rdf:ldap"
flex="2" id="testTree" ref="ldap://memberdir.netscape.com:389/ou=member_directory,o=netcenter.com??one?(sn=Rasputin)">
<template>
<rule>
<conditions>
<content uri="?uri" />
<triple subject="?uri"
predicate="http://home.netscape.com/NC-rdf#child"
object="?child" />
</conditions>
<bindings>
<binding subject="?child"
predicate="http://www.mozilla.org/LDAPATTR-rdf#mail"
object="?mail" />
<binding subject="?child"
predicate="http://www.mozilla.org/LDAPATTR-rdf#cn"
object="?cn" />
</bindings>
<action>
<treechildren flex="1">
<treeitem uri="?child">
<treerow>
<treecell class="treecell-indent" value="?mail" flex="1" />
<treecell value="?cn" flex="1" />
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols id="theColumns">
<treecol id="mail" flex="1" />
<treecol id="cn" flex="1" />
</treecols>
<treehead>
<treerow id="headRow">
<treecell value="Email Address" flex="1" />
<treecell value="Real Name" flex="1" />
</treerow>
</treehead>
</tree>
</window>