Re: Sorting tree with full rule syntax

"Mike P" <[email protected]> Sun, 12 Jun 2005 11:42:23 -0400
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Here it is. (I kinda thought the answer woud be something like 'its a known
problem...':)

<tree id="my-tree1" flex="1" rows="10" flags="dont-build-content"
  datasources="test007.rdf"
  ref="http://www.electricbook.net/folders/inbox" >

  <treecols>
    <treecol id="sName" label="Name" primary="true" flex="1"
      class="sortDirectionIndicator" sortDirection="ascending"
      sort="rdf:http://www.electricbook.net/rdf#subj" />
  </treecols>

    <template>
      <rule>
 <conditions>
        <content uri="?uri"/>
        <member container="?uri" child="?item" />
        <triple subject="?item"
predicate="http://www.electricbook.net/rdf#subj" object="?subj" />
 </conditions>
 <action>
        <treechildren>
          <treeitem uri="?item">
            <treerow>
              <treecell label="?subj"/>
            </treerow>
          </treeitem>
        </treechildren>
 </action>
      </rule>
    </template>
</tree>

<tree id="my-tree2" flex="1" rows="10"  flags="dont-build-content"
  datasources="test007.rdf"
  ref="http://www.electricbook.net/folders/inbox" >

  <treecols>
    <treecol id="sName" label="Name" primary="true" flex="1"
      class="sortDirectionIndicator" sortDirection="ascending"
      sort="rdf:http://www.electricbook.net/rdf#subj"/>
  </treecols>

    <template>
        <treechildren>
          <treeitem uri="?item">
            <treerow>
              <treecell label="rdf:http://www.electricbook.net/rdf#subj"/>
            </treerow>
          </treeitem>
        </treechildren>
    </template>
</tree>

"Neil" <[email protected]> wrote in message
news:[email protected]...
> Mike P wrote:
>
> >I'm trying to sort a tree, and everything works fine with simple template
syntax.
> >But it doesn't if I use the full rule syntax (the tree looks good, just
doesn't sort).
> >
> >
> Mind posting the "before" and "after" trees?
>
> -- 
> Warning: May contain traces of nuts.