Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

template tree for filesystem not working

13 views
Skip to first unread message

Fxp

unread,
May 15, 2009, 1:51:01 PM5/15/09
to
I have posted this on mozilla.dev.extensions and received no answer.
It should fit in this more specific group.

Hi,

I took the example from https://developer.mozilla.org/en/XUL_Tutorial/Trees_and_Templates

Actually, nothing is displayed inside the tree.
Can someone tell me what else I should add to the code for it to work.

<tree id="my-tree" flex="1"
datasources="rdf:files" ref="file:///" flags="dont-build-
content">
<treecols>
<treecol id="Name" label="Name" primary="true" flex="1"/>
<splitter/>
<treecol id="Date" label="Date" flex="1"/>
</treecols>

<template>
<rule>
<treechildren>
<treeitem uri="rdf:*">
<treerow>
<treecell label="rdf:http://home.netscape.com/NC-
rdf#Name"/>
<treecell label="rdf:http://home.netscape.com/WEB-
rdf#LastModifiedDate"/>
</treerow>
</treeitem>
</treechildren>
</rule>
</template>
</tree>

Thank you for your help.
(firefox 3.0.3)

Neil

unread,
May 17, 2009, 4:02:28 PM5/17/09
to
Fxp wrote:

>I have posted this on mozilla.dev.extensions and received no answer.
>
>

It just took me that long to work out what the problem was... it should
have been obvious (to me, anyway).

>It should fit in this more specific group.
>
>

Actually in this case I'd suggest m.d.e was a better fit :-)

--
Warning: May contain traces of nuts.

Fxp

unread,
May 31, 2009, 7:22:59 PM5/31/09
to
On May 17, 10:02 pm, Neil <n...@parkwaycc.co.uk> wrote:

> Actually in this case I'd suggest m.d.e was a better fit :-)


Here is the link of my post with Neil's detailed answer.

Thank you again, and sorry I pressed you :)

François

0 new messages