Skip to Content
Real World XML
book

Real World XML

by Steven Holzner
January 2003
Beginner to intermediate content levelBeginner to intermediate
1200 pages
23h 42m
English
Peachpit Press
Content preview from Real World XML

The xlink:arcrole and xlink:label Attributes

The xlink:arcrole attribute is set to a URI and holds the “role” of the link in an arc. (Arcs can support multiple resources and various traversal paths—see the section “Creating Arcs with the xlink:from and xlink:to Attributes,” later in this chapter, for more on arcs.) Such links can be in multiple arcs and can have a different meaning in each. For example, a link may represent a person who is a son in one arc and a father in another. The xlink:label attribute holds, as you might guess, a human-readable label for the link.

Don't forget that you need to declare xlink:arcrole and xlink:label if you want to create valid documents. That might look something like this in a DTD:

 <!ELEMENT ASTRO_NEWS> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Inside XML

Inside XML

Steven Holzner
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0735712867Purchase book