Introduction to XLink
Added 26 Jul 2008
Every developer is familiar with the linking capabilities of the
Web today. However, as the use of XML grows, we quickly realize
that simple tags like Freud are not going to
be enough for many of our needs.
Consider, for example the problem of creating an XML-based help system similar to ones used in some PC applications. Among other things (such as displaying amusingly animated characters), the system might be capable of performing the following actions when a user clicks on a topic:
- Opening an explanatory text (with a link back to the main index)
- Opening a window and simulate the actions to be taken (e.g., going to the "Edit" menu and pressing "Include Image")
- Opening up a relevant dialog (e.g, a file chooser for the image to include)
Trying to code something like this (links with multiple targets,
directions, and roles) in XML while having old "
In answer to these and many other linking questions, this
article describes the structure and use of XLink. The article is
composed of three parts: a brief example that illustrates the
basics of the language, a complete review of the structure of XLink,
and a list of XLink-related resources. The resources include some
XSLT transformations that enable your HTML output to simulate
required XLink behavior on today's browsers.motherhood" and
"friendship" relationships between two
"person" elements