Descriptions of the Remote Resource

A link element may contain optional xlink:role and xlink:title attributes that describe the remote resource, that is, the document or other resource to which the link points. For example:

<AUTHOR 
 xmlns:xlink="http://www.w3.org/XML/XLink/0.9"
 xlink:href="http://www.macfaq.com/personal.html"
 xlink:title="Elliotte Rusty Harold's personal home page" 
 xlink:role="information about the author of this book">
   Elliotte Rusty Harold
</AUTHOR>

As with all other attributes, the xlink:title and xlink:role attributes should be declared in the DTD for all the elements to which they belong. For example, this is a reasonable declaration for the above AUTHOR element:

<!ELEMENT AUTHOR (#PCDATA)>
<!ATTLIST AUTHOR
  xmlns:xlink CDATA #FIXED "http://www.w3.org/XML/XLink/0.9"
  xlink:type  CDATA #FIXED "simple"
  xlink:href  CDATA #REQUIRED
  xlink:title CDATA #IMPLIED
  xlink:role  CDATA #IMPLIED
>

Previous | Next | Top | Cafe con Leche

Copyright 1999 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified October 10, 1999