Creating Arcs with the xlink:from and xlink:to Attributes

In simple links, there's little question where to go when the link is activated: The xlink:href attribute tells you all you need to know. However, extended links are more complex. When you want to traverse the link we've created in the last section, what should happen? There are all kinds of paths among the various resources.

Each of the possible paths between resources is called an arc. You represent an arc in XML elements by setting the xlink:type attribute to "arc".

To specify how an arc works, you can use attributes such as xlink:show and xlink:actuate. Here's the important part: Arc elements also have xlink:from and xlink:to elements to specify traversal paths. The xlink:from attribute ...

Get Real World XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.