[prev in list] [next in list] [prev in thread] [next in thread]
List: mozilla-rdf
Subject: Re: Tree list and RDF probplem
From: stan <skatan () despammed ! com>
Date: 2003-12-16 13:21:49
[Download RAW message or body]
José Antonio Sánchez Sánchez ha scritto:
> Hi, I think you are getting troubles with the definition
> of rdf:properties you want to show in your xul tree.
>
> Note you are defining the properties at RDF file with this
> namespace http://my.domain.dom/cruiser/RDF#.
>
> but when you write the trecell item use a wrong namespace.
>
> you must distinguish the uri where you get the source of your data
> and the namespace you had defined.
> So you may try something like this:
>
> <treerow uri="rdf:*">
> <treecell
> label="rdf:http://my.domain.dom/cruiser/RDF#utente"/>
>
> <treecell
> label="rdf:http://my.domain.dom/cruiser/RDF#ruolo"/>
> <treecell
> label="rdf:http://my.domain.dom/cruiser/RDF#interno"/>
> <treecell
> label="rdf:http://my.domain.dom/cruiser/RDF#mobile"/>
> <treecell
> label="rdf:http://my.domain.dom/cruiser/RDF#email"/>
> </treerow>
>
> in order to be right with your RDF namespace definition of the data.
>
> I really hope it helps you. And please, excuse my wrong english.
>
>
>
>
> El Thu, 11 Dec 2003 11:18:11 +0100, stan escribió:
>
>
>>Ok, I tried differrent Tutorials and exemples found around.
>>I'm trying to populate a simple tre list with a RDF file which is
>>actually a php script that grabs data from LDAP/MySQL.
>>
>>All I get is a empty list with a blank record in it.
>>
>>Here is the xul code:
>>
>><?xml version="1.0"?>
>>
>><?xml-stylesheet href="/cruiser/cruiser.css" type ="text/css"?>
>>
>><window id="tree" title="ldap"
>> xmlns:html="http://www.w3.org/1999/xhtml"
>> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>> class="ContentFrameBox">
>>
>> <spacer style="height: 10px"/>
>>
>>
>> <hbox height="150">
>>
>> <tree
>>datasources="http://my.domain.dom/cruiser/RDF/contentFrame.data.php"
>>ref="urn:utenti:ldap" flex="1" >
>> <treecols>
>> <treecol id="utente" label="Utente" flex="1"
>>primary="true" sortActive="true" sortDirection="ascending"/>
>> <treecol id="ruolo" label="Ruolo" flex="1"/>
>>
>> <treecol id="interno" label="Interno"/>
>> <treecol id="mobile" label="Mobile" flex="1"/>
>> <treecol id="email" label="Email" flex="1"/>
>> </treecols>
>>
>>
>> <template>
>> <treechildren>
>> <treeitem >
>> <treerow uri="rdf:*">
>> <treecell
>>label="rdf:http://my.domain.dom/cruiser/RDF/contentFrame.data.php#utente"/>
>>
>> <treecell
>>label="rdf:http://my.domain.dom/cruiser/RDF/contentFrame.data.php#ruolo"/>
>> <treecell
>>label="rdf:http://my.domain.dom/cruiser/RDF/contentFrame.data.php#interno"/>
>> <treecell
>>label="rdf:http://my.domain.dom/cruiser/RDF/contentFrame.data.php#mobile"/>
>> <treecell
>>label="rdf:http://my.domain.dom/cruiser/RDF/contentFrame.data.php#email"/>
>> </treerow>
>> </treeitem>
>> </treechildren>
>> </template>
>> </tree>
>> </hbox>
>></window>
>>
>>
>>Here the RDF Files created from the PHP script.
>>
>><?xml version="1.0"?>
>><RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>> xmlns:utenti="http://my.domain.dom/cruiser/RDF#">
>>
>>
>> <RDF:Seq about="urn:utenti:ldap">
>>
>> <RDF:li>
>> <RDF:Description about="urn:utenti:DOE">
>> <utenti:utente>DOE</utenti:utente>
>> <utenti:ruolo>IT Manager</utenti:ruolo>
>> <utenti:interno>12</utenti:interno>
>>
>> <utenti:mobile>02555</utenti:mobile>
>> <utenti:email>efef</utenti:email>
>> </RDF:Description>
>> </RDF:li>
>>
>> </RDF:Seq>
>></RDF:RDF>
>>
>>
>>Any ideas?
>>Thanx.
>
>
THANX :)
_______________________________________________
Mozilla-rdf mailing list
Mozilla-rdf@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-rdf
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic