XLink Van Lepthien CSCI 7818 Fall 2000. Overview What is XLink? W3C Stuff XLink Elements Linkbases Traversals Implementations Comments References.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Advertisements

XML III. Learning Objectives Formatting XML Documents: Overview Using Cascading Style Sheets to format XML documents Using XSL to format XML documents.
Applications of XSLT. generating Word documents WordML provides formatting and content elements Word 2003 can read WordML files XSLT can be used to transform.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
The Web Warrior Guide to Web Design Technologies
Dickson K.W. Chiu PhD, SMIEEE Thanks to Prof. Francis Lau (HKU)
XLink & XPointer ShengWu. Contents Covered XLink –XLink Versus HTML links –Linking Elements –Simple Links –Link Behavior –Extended Links.
Internet Technologies1 XLink The Wonderful World of Oz example and its DTD are from “XML in a Nutshell” by Elliotte Rusty Harold.
1 Linking in XML A way of creating hyperlinks in XML documents, Internal-Link and External-Link.
Lecture 14 XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name.
XML Namespaces Andrey Smirnov CSCI 7818 September 21, 2000.
XLINK A mechanism to link xml documents. Fujitsu’s free xlink processor xwand/activity/xbrltools/xlip/index.htmlhttp://software.fujitsu.com/en/interstage-
1 XML Linking Language (XLink) W3C Working Draft - 3/3/1998.
XLink: Open Linking Standard XML / XSL separate  data semantics  presentation semantics Need to also separate out  navigation semantics Single unique.
Common Mechanisms in UML
COS 381 Day 16. Agenda Assignment 4 posted Due April 1 There was no resubmits of Assignment Capstone Progress report Due March 24 Today we will discuss.
Unit 4 – XML Schema XML - Level I Basic.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
National Coastal Data Development Center A division of the National Oceanographic Data Center Please a list of participants at each location to
XML TOPIC MAP JUNG J. W.. SNU OOPSLA Lab. contents What ’ s XTM? Why XTM? Element of XTM XTM Conceptual Model DTD Introduction to XTM Syntax.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
Lecture 15 XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
Xpath Xlink Xpointer Xquery Sources:
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
XML Language Family Detailed Examples Most information contained in these slide comes from: These slides are intended.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XML Syntax - Writing XML and Designing DTD's
XML - Why: The HTML-Dilemma HTML, SGML, XML - How: Syntax, Concept, Language Elements Basics Well-formed XML-Documents (without DTD) Valid XML-Documents.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
XML Part 2 Josh Steele CS 6704, Spring XML Part 2 XSL/XSLT –Structure Revisited –Definition –Example –Components XML’s Linking Languages XML’s Uses.
1 XML An Overview Roger Debreceny University of Hawai`i Skip White University of Delaware XBRL Workshop, August 2006.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
Processing of structured documents. XML Linking Language (XLink) zCreate and describe links between resources zboth basic unidirectional links and more.
Tutorial 8 Designing a Web Site with Frames. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore the uses of frames.
An OO schema language for XML SOX W3C Note 30 July 1999.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
Part One Review Policy Intro to ISO Levels of Metadata Data Discovery.
XLinks Praveen Polishetty. Contents : XLink Capabilities XLink Concepts XLink Core Properties XLink Semantic Properties XLink Behavior Properties XLink.
Advanced Accounting Information Systems Day 31 XML Language Foundation November 6, 2009.
XML Study-Session: Part III
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
SNU OOPSLA Lab. Hypertext links(XLL) © copyright 2001 SNU OOPSLA Lab.
Introducing XLink and XPointer ©NIITeXtensible Markup Language/Lesson 10/Slide 1 of 23 Objectives In this lesson, you will learn to: * Identify the types.
UML Basics and XML Basics Navigating the ISO Standards.
XML Linking Language (XLink) Yi-Hui Lin. What is XLink? XLink is short for the XML Linking Language XLink is a language for creating hyperlinks in XML.
Global attributes provided by XLink Type definition attribute type Locator attributehref Semantic attributesrole, arcrole, title Behavior attributesshow,
Interoperability How to Build a Digital Library Ian H. Witten and David Bainbridge.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Linking XML Documents Ellen Pearlman Eileen Mullin Programming the Web.
XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name value pair;
Processing of structured documents Part 7. XML Linking Language (XLink) zCreate and describe links between resources zboth basic unidirectional links.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
 2002 Prentice Hall, Inc. All rights reserved. 1 XLink and XPointer Outline 1Introduction 2XML Linking Language (XLink) 2.1 Simple Links 2.2 Extended.
DHTML.
XML QUESTIONS AND ANSWERS
Chapter Eight Interoperability How to Build a Digital Library
Introduction to XHTML.
Database Processing with XML
CSE591: Data Mining by H. Liu
Presentation transcript:

XLink Van Lepthien CSCI 7818 Fall 2000

Overview What is XLink? W3C Stuff XLink Elements Linkbases Traversals Implementations Comments References

What is XLink? XLink “allows elements to be inserted into XML documents in order to create and describe links between resources.”

What is XLink? Define link relationships among more than two resources. Associate metadata with a link Define links to associate resources not in the document containing the link

What is XLink? Enables hyperwebs (this slide for Ken’s benefit)

W3C Stuff XML XLink Requirements Version 1.0 W3C Note 24-Feb-1999 ( ) Candidate Recommendation: 3 July 2000: XML Linking Language (XLink) Version ( Namespace: xmlns:xlink=“

XLink Scope Element Conformance Application Conformance

Element Conformance An element contains a type attribute from the XLink namespace with a value of “arc”, “extended”, “locator”, “resource”, “simple”, “title”, or “none”. An element adheres to the specified constraints for the type. XLink does not define elements. It defines attributes and how the containing elements are to be used.

Application Conformance The recommendation describes processing that an application must do to conform, and, if optional features are implemented, what must be done to make the optional features conform.

XLink Element Types Links: –simple –extended Resources (used in extended links) –resource (local resource) –locator (remote resource) arc (used in extended links) title (may be in a child element of an extended-, locator- or arc-type element) none

Link - simple Defines an outbound link from a local resource to a remote resource. Similar to HTML references … or Attributes –href – URI of a resource. Xpointer support is explicitly expected. –role – URI of a resource that describes the role of the element –arcrole – URI of a resource that describes the role of the link –show – describes how the href resource is to be presented on transversal –actuate – describes when the transversal to href resource is to happen –title – a human readable description of the element

simple - Link Example XML Document <doc … xmlns:xlink=“…/xlink”> … <mytag xlink:type=“simple” xlink:role=“role_uri” xlink:href=“ref_uri” xlink:show=“new” xlink:actuate=“onLoad”> … … Role definition Linked resource Instruction to open the link in a new window when the link is traversed Instruction to traverse the link when loading the original document

Link - extended An extended link associates an arbitrary number of resources. An extended link may be stored separately from all resources that are being associated. Enables linking of objects that have no provision of internal links.

Link - extended A link element with XLink type=“extended” contains a set of elements with XLink types of resource, locator, arc, and title.

resource An element with XLink type=“resource” defines a local resource. Attributes –role – URI of a resource that describes the role of the element –title – a human readable description of the element –label – provides a label to which an arc type element may refer

locator An element with XLink type=“locator” defines a remote resource. Attributes –href – URI of a resource (required) –role – URI of a resource that describes the role of the element –title – a human readable description of the element –label – provides a label to which an arc type element may refer

arc An element with XLink type=“arc” defines links between (or among) resources. The links can be: –between a location in the document and a remote resource (an “outbound” arc) –between a remote resource and a location in the document (an inbound arc) –between remote resources (a remote arc)

arc Attributes –from – specifies the label of starting resources for a transversal –to – specifies the label of ending resources for a transversal –show – describes how the href resource is to be presented on transversal –actuate – describes when the transversal to href resource is to happen –arcrole – URI of a resource that describes the role of the arc –title – a human readable description of the element

title An element with XLink type=“title” permits more information than a title attribute alone would. A title element must be a child of the element it supplies title information for. An element with XLink type=“title” only has XLink specified meaning if it is the child of an element with an XLink type of extended, locator, or arc.

extended - Link Example XML Document Porsche Ferrari <account xlink:type=“locator” xlink:label=“a1” xlink:href=“ xlink:title=“Brian Temple”/> Matthias Hauswirth … … <charge_to xlink:type=“arc” xlink:from=“c1” xlink:to=“a1” xlink:title=“Brian pays”/> Bank Account

none An element with XLink type=“none” has no XLink specified meaning. This can be used to enable one to turn XLink on and off in individual elements in an element type that is XLink aware.

none Example DTD … <!ATTLIST ref xlink:type (simple|none) “none” xlink:href CDATA #IMPLIED > Markup … stuff … stuff “ref” element with link “ref” element without link

Behavioral Attributes The two behavior attributes, show and actuate, give an XLink application instructions on how and when, respectively, to display the ending resources of links.

show attribute The show attribute on a simple link or an arc describes how the application interpreting XLink should present the ending resource of the link or arc. The value of the show attribute is one of “new”, “replace”, “embed”, “other”, or “none” Linkbase arcs must be treated as if show=“none”, regardless of the value specified.

show attribute values “new” – the application should open the ending resource in a new window, frame, or similar context. “replace” – the application should load the ending resource in the same window, frame, etc. as the starting resource. “embed” – the application should load the the ending resource in place of the starting resource. “other” – the application should use other markup in the link to determine how the ending resource should be handled. “none” – the application is not constrained on how to load the ending resource.

actuate attribute The actuate attribute on a simple link or an arc describes when the application interpreting XLink should make the traversal. The value of the actuate attribute is one of “onLoad”, “onRequest”, “other”, or “none” Linkbase arcs must be treated as if actuate=“onLoad”, regardless of the value specified.

actuate attribute values “ onLoad ” – the application should traverse to the ending resource upon loading of the starting resource. “ onRequest ” – the application should traverse to the ending resource after loading of the starting resource, but only when some explicit event (an mouse click, etc.) initiates the traversal. “other” – the application should use other markup in the link to determine how the traversal occurs. “none” – the application is not constrained on how it handles the traversal.

Linkbases A linkbase is used to gather links in one place, external to the items linked. A linkbase is specified in an external link with an arc type element with arcrole=“ A linkbase must be XML.

Traversals In an simple link a traversal is specified by the implicit local resource and the explicit remote resource designated in the href attribute. In an extended link, a set of traversals are specified by the pairs each made up of a from-node, consisting of a locator type element whose label matches the value of the from attribute in an arc, and a to-node, consisting of a locator type element whose label matches the value of the to attribute in the same arc.

Traversals Example XML Document Porsche Ferrari <account xlink:type=“locator” xlink:label=“a1” xlink:href=“ xlink:title=“Brian Temple”/> Matthias Hauswirth … … <charge_to xlink:type=“arc” xlink:from=“c1” xlink:to=“a1” xlink:title=“Brian pays”/> Traverals for the “charge_to” arc car:Porsche  account car:Ferrari  account Traverals for the “deliver_to” arc car:Porsche  location car:Ferrari  location

Unclear areas simple link role Two arcs in an extended link cannot have the same from and to values show attribute values “replace” and “embed” The choice of the terms “replace” and “embed” for values of the show attribute are not clear

Unclear areas simple link role In a simple link, a role can be specified, but it not clear whether the role is being defined for the local resource or the remote resource. (In the XLink Candidate Recommendation, the example of single link functionality implemented in an extended link, the role appears as an attribute of the locator type element, i.e., the remote resource. But an example does not a specification make. And there is no reason the local resource should not have a role described.XLink Candidate Recommendation

Unclear areas Two arcs in an extended link cannot have the same from and to values In an extended link, only one arc can specify a pair of xlink:from and xlink:to values. If there are multiple relationships between a pair of objects, they cannot be expressed as arcs from one object to the other distinguished by different arcrole attribute values. This may be intended to prevent multiple traversals where they might not be wanted, but also prevents multiple traversals where they might be needed.

Unclear areas show attribute values “replace” and “embed” The choice of the terms “replace” and “embed” for values of the show attribute are not clear. –The description of “replace” says the application “should load the resource in the same window, frame, pane, or other relevant presentation context in which the starting resource was loaded.” –The description for “embed” says the application “should load it in place of the starting resource.”

Implementations University of Southhampton (see [CARR] in the references) 1998? - XLink in DSSSL Package. There is a reference on xml.com to an implementation of XLink, but the server does not respond – XLinkFilter (see [ST LAURENT] in the references) None of the major browsers have support.

Comments I have ignored XPointer. I would like to do a comparison of XLink and Chimera functionality. The lack of implementations is disturbing – even recognizing that XLink is still a Candidate Recommendation. The “Unclear Areas” popped right out from reading the recommendation. This is not a good sign. XML support for extended hyperlinks is a good thing.

References [CARR] Leslie Carr, Initial Experiences of an XLink Implementation; [JIRAT] Jiri Jirat, XLink Reference; [MALER] Eve Maler, XLink and Xpointer Overview; open.org/cover/xlinkMaler htmlhttp:// open.org/cover/xlinkMaler html [ST LAURENT] Simon St.Laurent, XLinkFilter: An Open Source Java XLink SAX Parser Filter; [vdVLIST] Eric van der Vlist, XML Linking Technologies; [XMLCOM] XML Resource Guide: XLink;