 |
|
THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB
|
|
An example
A linking element defining a third-party "extended" link involving two
remote resources:
<mylink xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="extended">
<myresource xlink:type="locator"
xlink:href="students.xml#Fred" xlink:label="student"/>
<myresource xlink:type="locator"
xlink:href="teachers.xml#Joe" xlink:label="teacher"/>
<myarc xlink:type="arc"
xlink:from="student" xlink:to="teacher"/>
</mylink>
|
- the namespace http://www.w3.org/1999/xlink is used to
recognize XLink information in general XML documents
- the namespace often (but not necessarily) uses namespace prefix xlink
- host language: elements and attributes not belonging to this namespace
are ignored by XLink processors
- all XLink information is defined in attributes (in host language elements)
- xlink:type="extended" indicates a linking element
- xlink:type="locator" locates a remote resource
- xlink:type="arc" defines traversal rules
-
A powerful example application of general XLinks:
-
Using third-party links and a smart browser, a group of people can
annotate Web pages with "post-it notes" for discussion - without
having write access to the pages. They simply need to agree on a set
of URIs to XLink link bases defining the annotations.
The smart XLink-aware browser lets them select parts of the
Web pages (as XPointer ranges), comment the parts by creating
XLinks to a small XHTML documents, view each other's comments, place
comments on comments, and perhaps also aid in structuring the comments.
|
COPYRIGHT © 2000-2003
ANDERS MØLLER & MICHAEL I. SCHWARTZBACH
|
|
| | Copyright© 1998-2004 All Rights Reserved. No portion of this site may be reproduced or redistributed without prior written permission from VistaEdge Technologies
All registered trademarks appearing on this site are the property of their respective owners. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the United States and other countries. This site is not connected to Sun Microsystems, Inc. and is not sponsored by Sun Microsystems, Inc. | |
|  |