Home : Tutorials : XML and Related Technologies


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

Simple vs. Extended links

- for compatibility and simplicity

Two kinds of links:

  • extended - the general ones we have seen so far
  • simple - a restricted version of extended links: only for two-ended outbound links (enough for HTML-style links)
Convenient shorthand notation for simple links:

  <mylink xlink:type="simple" xlink:href="..." xlink:show="..." .../>

is equivalent to:

  <mylink xlink:type="extended">
    <myresource xlink:type="resource" 
                xlink:role="local"/>
    <myresource xlink:type="locator" 
                xlink:role="remote" xlink:href="..."/>
    <myarc xlink:type="arc" 
           xlink:from="local" xlink:to="remote" xlink:show="..." .../>
  </mylink>

Many XLink properties (e.g. xlink:type and xlink:show) can conveniently be specified as defaults in the schema definition!

When should I use XLink? Tim Berners-Lee: only for hypertext linking (Not everybody agree...)

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.