1
Generalization of HTML link concept (based on XPointer).
5
Link - Explicit relationship between two or more resources
6
Linking element - An XML element that asserts the existence and describes the
7
characteristics of a link
8
Locator - An indefication of a remote resource that is participating
10
Outbound link - The source is a local resource
11
Inbound link - The destination is a local resource
12
Third-party link- None of the resources are local
16
xmlns:xlink="http://www.w3.org/1999/xlink"
21
xlink:type resource - indicates local linking resource
22
locator - locates a remote linking resource
23
extended - indicates a general linking element
24
simple - indicates a general linking element
25
(only two-ended outbound links)
26
arc - define traversal rules (defines a set
27
of arcs: from each resource having the
28
from label to each resource having the
30
title - See xlink:title
31
xlink:href XPointer which specifies remote resource
32
xlink:label Linking element ideficator
33
xlink:from Specifies source link element (by indeficator)
34
xlink:to Specifies destination link element
35
xlink:show Specifies what happens when the link is activated:
36
embed - insert the presentation of the target resource
37
(the one at the end of the arc) in place of the
38
source (the one ate the begining of the arc,
39
where traversal was initiated).
40
Example: as images in HTML.
41
new - Display the target resource some other place
42
without affecting the presentation of the
44
Example: as target="_blank" in an HTML link
45
(loads link in new window)
46
replace - Replace the presentation of the resource
47
containing the source with a presentation of
49
Example: Noraml HTML link
50
other - Behavior specified elsethere
51
none - Non behavior specified
52
xlink:actuate Specifies when is the link activated
53
onLoad - traverse the link immediately when recognized
54
Example: as HTML images
55
onRequest - traverse when explicitly requested
56
Example: as normal HTML links
57
other - behavior specified elsethere
58
none - no behavior is specified
59
xlink:title Provides human readable description
60
xlink:role(arcrole) Also can act as linking element ideficator
64
mylink Specifies general link element
65
myresource Specifies link resources
66
myarc Specifies link arcs
70
<mylink xlink:type="simple" xlink:href="..." xlink:show="..." .../>
72
this links are equivalent
74
<mylink xlink:type="extended">
75
<myresource xlink:type="resource"
77
<myresource xlink:type="locator"
78
xlink:role="remote" xlink:href="..."/>
79
<myarc xlink:type="arc"
80
xlink:from="local" xlink:to="remote" xlink:show="..." .../>
85
Third-Party Link Example
86
------------------------
87
<mylink xlink:type="extended">
88
<myresource xlink:type="locator"
89
xlink:href="students.xml#Fred" xlink:label="student"/>
90
<myresource xlink:type="locator"
91
xlink:href="teachers.xml#Joe" xlink:label="teacher"/>
92
<myarc xlink:type="arc"
93
xlink:from="student" xlink:to="teacher"/>