to the main page about the tutorial  THE XML REVOLUTION  -  TECHNOLOGIES FOR THE FUTURE WEB back up next

An example

A linking element defining a third-party "extended" link involving two remote resources:

  <mylink xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="extended">
    <myresource xlink:type="locator" 
                xlink:href="students.xml#Fred" xlink:label="student"/>
    <myresource xlink:type="locator" 
                xlink:href="teachers.xml#Joe" xlink:label="teacher"/>
    <myarc xlink:type="arc" 
           xlink:from="student" xlink:to="teacher"/>
  </mylink>

A powerful example application of general XLinks:
Using third-party links and a smart browser, a group of people can annotate Web pages with "post-it notes" for discussion - without having write access to the pages. They simply need to agree on a set of URIs to XLink link bases defining the annotations. The smart XLink-aware browser lets them select parts of the Web pages (as XPointer ranges), comment the parts by creating XLinks to a small XHTML documents, view each other's comments, place comments on comments, and perhaps also aid in structuring the comments.

back COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH next