Home : Tutorials : XML and Related Technologies


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

Linking elements

- defining links

All elements with XLink information contain an xlink:type attribute.

  • a general linking element is defined using an xlink:type="extended" attribute; this element can contain the following:
  • a local resource is defined with xlink:type="resource"
  • a remote resource is defined with xlink:type="locator" and with an xlink:href attribute (an XPointer expression locating the resource)
  • arcs (traversal rules) are defined with xlink:type="arc":
    • both "resource" and "locator" elements can have xlink:label attributes
    • an arc element has an xlink:from and an xlink:to attribute
    • the "arc" element defines a set of arcs: from each resource having the from label to each resource having the to label
(Note the confusing terminology: a resource is defined either by a "resource" element or by a "locator" element.)

XPointer is described later - just think of XPointer expression as URIs for now...

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


Home : Tutorials : XML and Related Technologies

 

Copyright© 1998-2004 All Rights Reserved. No portion of this site may be reproduced or redistributed without prior written permission from VistaEdge Technologies

All registered trademarks appearing on this site are the property of their respective owners. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. This site is not connected to Sun Microsystems, Inc. and is not sponsored by Sun Microsystems, Inc.