|
|
This work is licensed under a Creative Commons |
One of the most important aspects of publishing is the relationship of content parts. The Web has popularized the concept of hypermedia, but HTML supports only a very simple concept of linking. The XML Linking Language (XLink) has been specified to provide a linking language for XML, and it supports a much richer concept of linking than HTML. One of the most important aspects of XLink is its ability to separate content and links, so that links can be regarded as being separate from a document's contents, making it possible to create flexible combinations of content and links.
name, but this is better done using idsrelationrev attribute (indicating the endpoint of a link)link microformatfor XML
and while we're at it, we might as well turn the Web into a proper hypermedia system!
<a xlink:href="…" [ xlink:actuate="onRequest" xlink:show="replace" ] xlink:type="simple" > … </a>
<a xlink:href="…" [ xlink:role="…" xlink:arcrole="…" xlink:title="…" ] xlink:type="simple" > … </a>
onLoad instructs to traverse the link as soon as the starting resource is displayedonRequest waits for link traversal until a user has initiated link traversalother allows markup extensions, none specifies that there is no additional informationnew specifies that a new presentation context is be created (e.g., a new window)replace specifies that the target resource replaces the current resourceembed specifies that the target resource replaces the starting resource fragmentother allows markup extensions, none specifies that there is no additional informationhttp://www.w3.org/1999/xlink/properties/linkbase<environment xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="extended"> <artist xlink:type="locator" xlink:role="artist" xlink:href="modigliani.xml"/> <influence xlink:type="locator" xlink:label="inspiration" xlink:href="cezanne.xml"/> <influence xlink:type="locator" xlink:label="inspiration" xlink:href="lautrec.xml"/> <influence xlink:type="locator" xlink:label="inspiration" xlink:href="rouault.xml"/> <history xlink:type="locator" xlink:label="period" xlink:href="paris.xml"/> <history xlink:type="locator" xlink:label="period" xlink:href="kisling.xml"/> <bind xlink:type="arc" xlink:from="artist" xlink:to="inspiration"/> <bind xlink:type="arc" xlink:from="artist" xlink:to="period"/> </environment>
| Parent Type | Significant Child Types |
|---|---|
| simple | none |
| extended | locator, arc, resource, title |
| locator | title |
| arc | title |
| resource | none |
| title | none |
| simple | extended | locator | arc | resource | title | |
|---|---|---|---|---|---|---|
| type | ● | ● | ● | ● | ● | ● |
| href | ○ | ● | ||||
| role | ○ | ○ | ○ | ○ | ||
| arcrole | ○ | ○ | ||||
| title | ○ | ○ | ○ | ○ | ○ | |
| show | ○ | ○ | ||||
| actuate | ○ | ○ | ||||
| label | ○ | ○ | ||||
| from | ○ | |||||
| to | ○ |
D. Stanyer, R. Procter, Improving Web Usability with the Link Lens, Proceedings of WWW8, May 1999
Can XLink be fixed?
value-added servicesusing extensions (of semantics and/or behavior)