XLink Construction

Given that XLink is a part of XML, it should come as no surprise that it's possible to write your own XLink tag names. To create such a link, start with the following outline:

<MyXLinkElement>
  . Body of the element
 </MyXLinkElement>

Note

At the time this material is being written, XLink and XPointer are still in the draft stage and neither one is implemented in IE 5. Therefore, the examples presented here demonstrate the basic syntax and organization of XLinks and XPointers, but they cannot be run. To see the current XLink specification, go to http://www.w3.org/TR/xlink. To see the current XPointer specification, go to http://www.w3.org/TR/1998/WD-xptr-19980303.

There's an XLink namespace available at the URI http://www.w3.org/1999/xlink ...

Get Sams Teach Yourself XML in 24 Hours 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.