[prev in list] [next in list] [prev in thread] [next in thread]
List: mozilla-rdf
Subject: template question (Singling out an element)
From: "Eric Murphy" <eric () xiowa ! com>
Date: 2001-02-16 19:45:52
[Download RAW message or body]
I have a scenario where I just want to list just one element from a
datasource. I'll try to explain it the best I can here.
If I have this (for example):
urn:root -[http://www.jabber.org/rdf#jids] - (bunch of jids) ->
[http://www.jabber.org/rdf#nickname] - (a nickname)
Now, I want to set the template to use only one of these, like this:
urn:root -[http://www.jabber.org/rdf#jids] - (ericmurphy@jabber.org) ->
[http://www.jabber.org/rdf#nickname] - (a nickname)
Could I just change my template code to look like this? (This code crashes):
<tree datasources="rdf:null" id="roster-tree" ref="urn:root" flex="1">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<triple subject="?uri"
predicate="http://www.jabber.org/rdf#jids"
object="ericmurphy@jabber.com"/>
<member container="ericmurphy@jabber.com" child="?jid"/>
<!-- Used to look like this
<triple subject="?uri"
predicate="http://www.jabber.org/rdf#jids"
object="jids"/>
<member container="jids" child="?jid"/>
-->
<triple subject="?jid"
predicate="http://www.jabber.org/rdf#nickname"
object="?nickname"/>
</conditions>
<action>
<treechildren flex="1">
<treeitem uri="?jid">
<treerow>
<treecell flex="1" orient="horizontal"
allowevents="true" crop="right">
<text value="?nickname"/>
</treecell>
</treerow>
</treeitem>
</treechildren>
</action>
</rule>
</template>
</tree>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic