branch and leaf template example


XML document 

<diputree>
 <hastemplate>
  <b>
   <hasicon>
    <icon>
     <when>
      <closed/>
      <opened/>
     </when>
     <hasimage>
      <uri>
       <s>../../../documentation/images/diputreesmall.gif</s>
      </uri>
     </hasimage>
    </icon>
   </hasicon>
  </b>
  <l>
   <haslabel>
    <label>
     <when>
      <closed/>
      <opened/>
     </when>
     <hasbackground>
      <background>
       <hascolor>
        <rgb>
         <i>0x6699CC</i>
        </rgb>
       </hascolor>
      </background>
     </hasbackground>
    </label>
   </haslabel>
  </l>
 </hastemplate>

 <has>
  <b>
   <t->#xpointer(/*[1]/hastemplate/b[1])</t->
   <lt>a branch</lt>
  </b>
  <l>
   <t->#/1/1/2</t->
   <lt>a leaf</lt>
  </l>
 </has>
</diputree>

Explanation

<diputree>
  <hastemplate>
  <b>
     ...
  </b>
  <l>
     ...
  </l>
 </hastemplate>
</diputree>

<diputree> <hastemplate> <b>ranch and <l>eaf.

Remarks

See also

<t->, <hasdefaulttemplate>


diputree documentation © 2000 dipu