[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mozilla-rdf
Subject:    template performance improvements
From:       waterson () netscape ! com (Chris Waterson)
Date:       1999-07-19 19:06:37
[Download RAW message or body]

I've checked in some changes to the RDF "template" builder to improve
performance on large trees. This may affect you if you've been using
this feature to display content. Specifically, the RDF-to-content model
translation will no longer place all of the properties as attributes on
the "resource element"; you need to explicitly place those attributes in
the content model yourself.

For example, I had to modify flash.xul as follows:

Index: flash.xul
===================================================================
RCS file: /cvsroot/mozilla/rdf/resources/flash.xul,v
retrieving revision 1.10
diff -c -r1.10 flash.xul
*** flash.xul	1999/07/15 17:57:56	1.10
--- flash.xul	1999/07/19 19:21:14
***************
*** 45,51 ****
  
      <template>
        <rule rootcontainment="treechildren"
subcontainment="treechildren">
!         <treeitem uri="...">
            <treerow>
              <treecell>
                <treeindentation />
--- 45,51 ----
  
      <template>
        <rule rootcontainment="treechildren"
subcontainment="treechildren">
!         <treeitem uri="..."
type="rdf:http://home.netscape.com/NC-rdf#type">
            <treerow>
              <treecell>
                <treeindentation />

Note that I specifically add the "type" attribute to the template,
whereas before it was just magically added by default.

chris


p.s., no flames on lack of documentation: I'm working on it!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic