XLINK
- XLink is short for the XML Linking Language.
- XLink is a language for creating hyperlinks in
XML documents.
- XLink is similar to HTML links - but it is a lot
more powerful.
- ANY element in an XML document can behave as an
XLink.
- XLink supports simple links (like HTML) and
extended links (for linking multiple resources together).
- With XLink, the links can be defined outside of
the linked files.
- XLink is a W3C Recommendation.
Linking Elements
Any element can be a
link.
Linking elements are
identified by an xlink:type attribute with one of these four values:
simple: a simple link
extended: an extended, possibly
multi-resource, link
locator: a pointer to an external resource
resource: an internal resource
arc: a traversal rule between resources
title: a descriptive title for another
linking element
Each linking element
contains an xlink:href attribute whose value is the URI of the resource being
linked to.
An xmlns:xlink attribute
specifies the version of XLink this linking element supports.
Example:
<IMAGE
xmlns:xlink="http://www.w3.org/XML/XLink/0.9"
xlink:type="simple"
xlink:href="logo.gif"/>
XLink Summary
1.
XLinks can do
everything HTML links can do and quite a bit more, but
2.
they aren't supported by
current applications.
3.
XLink elements of
all types are placed in the
4.
http://www.w3.org/XML/XLink/0.9
namespace, normally with the xlink
5.
prefix. However, the URI
is likely to change in future revisions to XLink.
6.
Simple links
behave much like HTML links, but they are not restricted to
7.
a single <A> tag.
8.
Link elements are
identified by xlink:type attributes.
What is XPointer
1.
XPointer is short
for the XML Pointer Language
2.
XPointer allows
the hyperlinks to point to specific parts of the XML document
3.
XPointer uses
XPath expressions to navigate in the XML document
4.
XPointer is a W3C
Recommendation



0 comments:
Post a Comment