1999-07-10 00:42:55 +04:00
|
|
|
<?xml version="1.0"?> <!-- -*- Mode: SGML -*- -->
|
|
|
|
<!--
|
|
|
|
|
|
|
|
The contents of this file are subject to the Netscape Public License
|
|
|
|
Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
http://www.mozilla.org/NPL/
|
|
|
|
|
|
|
|
Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
for the specific language governing rights and limitations under the
|
|
|
|
NPL.
|
|
|
|
|
|
|
|
The Initial Developer of this code under the NPL is Netscape
|
|
|
|
Communications Corporation. Portions created by Netscape are
|
|
|
|
Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
Reserved.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
This test tries mixing it up a bit. It mingles XUL content with
|
|
|
|
RDF content for a change of pace.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
<?xml-stylesheet href="resource:/res/samples/xul.css" type="text/css"?>
|
|
|
|
|
|
|
|
<window
|
|
|
|
xmlns:html="http://www.w3.org/TR/REC-html40"
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
align="vertical">
|
|
|
|
|
1999-07-15 05:23:50 +04:00
|
|
|
<html:script>
|
|
|
|
function FindBeetle()
|
|
|
|
{
|
|
|
|
var beetle = document.getElementById('beetle');
|
|
|
|
dump('beetle = ' + beetle + '\n');
|
|
|
|
}
|
|
|
|
</html:script>
|
|
|
|
|
|
|
|
<titledbutton onclick="FindBeetle();" value="Find Beetle" />
|
|
|
|
|
|
|
|
<!-- <tree id="tree" flex="100%" datasources="rdf:bookmarks rdf:mailnewsfolders rdf:msgaccountmanager" style="height:100%;"> -->
|
|
|
|
<tree id="tree" flex="100%" style="height:100%;">
|
1999-07-10 00:42:55 +04:00
|
|
|
<template>
|
|
|
|
<rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator" rootcontainment="treechildren" subcontainment="treechildren">
|
|
|
|
<treeitem uri="...">
|
|
|
|
<treerow>
|
|
|
|
<treecell>
|
|
|
|
<html:hr width="75%" align="center" size="1" />
|
|
|
|
</treecell>
|
|
|
|
</treerow>
|
|
|
|
</treeitem>
|
|
|
|
</rule>
|
|
|
|
|
|
|
|
<rule rootcontainment="treechildren" subcontainment="treechildren">
|
|
|
|
<treeitem uri="...">
|
|
|
|
<treerow>
|
|
|
|
<treecell>
|
|
|
|
<treeindentation />
|
|
|
|
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#Name" align="right" />
|
|
|
|
</treecell>
|
|
|
|
<treecell>
|
|
|
|
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#URL" align="right" style="list-style-image: none;" />
|
|
|
|
</treecell>
|
|
|
|
</treerow>
|
|
|
|
</treeitem>
|
|
|
|
</rule>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<treehead>
|
|
|
|
<treerow>
|
|
|
|
<treecell>Name</treecell>
|
|
|
|
<treecell>URL</treecell>
|
|
|
|
</treerow>
|
|
|
|
</treehead>
|
|
|
|
|
|
|
|
<treechildren>
|
1999-07-15 05:23:50 +04:00
|
|
|
<treeitem id="treeroot" ref="NC:BookmarksRoot">
|
1999-07-10 00:42:55 +04:00
|
|
|
<treerow>
|
|
|
|
<treecell>Bookmarks</treecell>
|
|
|
|
<treecell></treecell>
|
|
|
|
</treerow>
|
1999-07-15 05:23:50 +04:00
|
|
|
|
1999-07-10 00:42:55 +04:00
|
|
|
<treechildren>
|
1999-07-15 05:23:50 +04:00
|
|
|
<treeitem id="beetle">
|
1999-07-10 00:42:55 +04:00
|
|
|
<treerow>
|
1999-07-15 05:23:50 +04:00
|
|
|
<treecell><treeindentation/>XUL Child #1</treecell>
|
1999-07-10 00:42:55 +04:00
|
|
|
<treecell></treecell>
|
|
|
|
</treerow>
|
1999-07-15 05:23:50 +04:00
|
|
|
|
|
|
|
<treechildren>
|
|
|
|
<treeitem>
|
|
|
|
<treerow>
|
|
|
|
<treecell><treeindentation/>XUL Child #1.1</treecell>
|
|
|
|
<treecell></treecell>
|
|
|
|
</treerow>
|
|
|
|
</treeitem>
|
|
|
|
</treechildren>
|
1999-07-10 00:42:55 +04:00
|
|
|
</treeitem>
|
|
|
|
|
|
|
|
<treeitem>
|
|
|
|
<treerow>
|
1999-07-15 05:23:50 +04:00
|
|
|
<treecell><treeindentation/>XUL Child #2</treecell>
|
1999-07-10 00:42:55 +04:00
|
|
|
<treecell></treecell>
|
|
|
|
</treerow>
|
|
|
|
</treeitem>
|
1999-07-15 05:23:50 +04:00
|
|
|
|
1999-07-10 00:42:55 +04:00
|
|
|
</treechildren>
|
|
|
|
</treeitem>
|
|
|
|
</treechildren>
|
|
|
|
</tree>
|
|
|
|
|
|
|
|
</window>
|