link compositions


Description

Nodes can have links. The link will then be displayed in the frame.

diputree can define the default target frame to use when displaying the link.

Shortcuts

There is a shortcut for the source of the link.

Diagram

diagram of <link> and diagram of <hasdestination>


A link

<diputree>
 <has>
  <l>
   <lt>click me!</lt>
   <haslink>
    <link>
     <hassource>
      <uri>
       <s>link.gif</s>
      </uri>
     </hassource>
     <hasdestination>
      <target>
       <s>myframe</s>
      </target>
     </hasdestination>
    </link>
   </haslink>
  </l>
 </has>
</diputree>

Explanation

<diputree>
 <has>
  <l>
   <lt>click me!</lt>

the haslink relation between the leaf and the link

   <haslink>
    <link>

the hassource relation between the link and the Uniform Resource Identifier (uri)

     <hassource>
      <uri>

the string relation between uri and "link.gif"

       <s>link.gif</s>
      </uri>
     </hassource>

the hasdestination relation between the link and the target

     <hasdestination>
      <target>

the string relation between target and "myframe"

       <s>myframe</s>
      </target>
     </hasdestination>
    </link>
   </haslink>
  </l>
 </has>
</diputree>


A link with a default destination

<diputree>
 <hasdestination>
  <target>
   <s>myframe</s>
  </target>
 </hasdestination>
 <has>
  <l>
   <lt>click me!</lt>
   <haslink>
    <link>
     <hassource>
      <uri>
       <s>link.gif</s>
      </uri>
     </hassource>
    </link>
   </haslink>
  </l>
 </has>
</diputree>

Explanation

<diputree>

the hasdestination relation between diputree and the target, this will be the default destination for all links who doesn't explicitly define their own targets.

 <hasdestination>
  <target>

the string relation between target and "myframe"

   <s>myframe</s>
  </target>
 </hasdestination>
 <has>
  <l>
   <lt>click me!</lt>
   <haslink>
    <link>
     <hassource>
      <uri>
       <s>link.gif</s>
      </uri>
     </hassource>
    </link>
   </haslink>
  </l>
 </has>
</diputree>


A shortcut link

<diputree>
 <has>
  <l>
   <lt>click me!</lt>
   <ls>link.gif</ls>
  </l>
 </has>
</diputree>

Explanation

<diputree>
 <has>
  <l>
   <lt>click me!</lt>

the link source shortcut relation between the leaf and "link.gif"

   <ls>link.gif</ls>
  </l>
 </has>
</diputree>


diputree documentation © 2000 dipu