[Project_owners] <tree/> help

Philip Chee philip.chee at gmail.com
Sun Feb 26 19:31:15 EST 2006


On Sat, 25 Feb 2006 22:33:38 -0800 (PST), Eric H. Jung wrote:

> Sure... here's the tree (abbreviated for clarity). Here I've hard-coded the uri attribute value to
> the value of an RDF:about attribute on a particular RDF:Description element.
[....]
> <template>
> <rule>
>   <treechildren>
>    <treeitem id="treeitem" uri="rdf:#$imX6r">
>      <treerow>
>        <treecell label="rdf:http://passwordmaker.mozdev.org/rdf#name"/>
>        <treecell label="rdf:http://passwordmaker.mozdev.org/rdf#description"/>
>        <treecell label="rdf:http://passwordmaker.mozdev.org/rdf#passwordLength"/>
>        ...
>     </treerow>
>    </treeitem>
>   </treechildren>
> </rule>
> </template>
> </tree> 

Yes but where are your conditions?!? You don't seem to have any conditions?
e.g.:

            <template>
              <rule>
                <conditions>
                  <content uri="?uri"/>
                  <triple subject="?uri"
                    predicate="http://home.netscape.com/NC-rdf#panel-list"
                    object="?panel-list"/>
                  <member container="?panel-list" child="?panel"/>
                  <triple subject="?panel"
                    predicate="http://home.netscape.com/NC-rdf#title"
                    object="?title" />
                </conditions>
                <bindings>
                  <binding subject="?panel"
                    predicate="http://home.netscape.com/NC-rdf#exclude"
                    object="?exclude"/>
                  <binding subject="?panel"
                    predicate="http://home.netscape.com/NC-rdf#prereq"
                    object="?prereq"/>
                </bindings>
                <action>
                  <menuitem uri="?panel" type="checkbox"
                    label="?title" exclude="?exclude" prereq="?prereq"/>
                </action>
              </rule>
            </template>

Phil (Forgot to RTFM again didn't you?)
-- 
Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]If I buy the steel wool, can you knit me a BMW?
* TagZilla 0.059


More information about the Project_owners mailing list