pjs/directory/xpcom/tests/example.xul

58 строки
1.5 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/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://alpha.dante.org.uk:389/dc=dante,dc=org,dc=uk??sub?drink=*">
<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#drink"
object="?drink" />
<binding subject="?child"
predicate="http://www.mozilla.org/LDAPATTR-rdf#givenname"
object="?givenname" />
</bindings>
<action>
<treechildren flex="1">
<treeitem uri="?child">
<treerow>
<treecell class="treecell-indent" label="?drink" flex="1" />
<treecell label="?givenname" flex="1" />
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
<treecols id="theColumns">
<treecol id="drink" flex="1" />
<treecol id="givenname" flex="1" />
</treecols>
<treehead>
<treerow id="headRow">
<treecell label="Drink" flex="1" />
<treecell label="Given Name" flex="1" />
</treerow>
</treehead>
</tree>
</window>