O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required