SNU OOPSLA Lab. Hypertext links(XLL) © copyright 2001 SNU OOPSLA Lab.

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

HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
XP 1 Developing a Basic Web Site Tutorial 2: Web Site Structures & Links.
© 2004, Robert K. Moniot Chapter 6 CSS : Cascading Style Sheets.
History Leading to XHTML
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
New Perspectives on Creating Web Pages with HTML
XP Adding Hypertext Links to a Web Page. XP Objectives Create hypertext links between elements within a Web page Create hypertext links between Web pages.
Introduction to XLink Transparency No. 1 XML Information Set W3C Recommendation 24 October 2001 (1stEdition) 4 February 2004 (2ndEdition) Cheng-Chia Chen.
 2002 Prentice Hall, Inc. All rights reserved. ISQA 407 XML/WML Winter 2002 Dr. Sergio Davalos.
Computer Science 1611 Internet & Web Creating Webpages Hypertext and the HTML Markup Language.
1 COS 425: Database and Information Management Systems XML and information exchange.
1 XML Linking Language (XLink) W3C Working Draft - 3/3/1998.
Tutorial 11 Creating XML Document
Document Type Definitions. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
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.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
XP New Perspectives on XML Tutorial 3 1 DTD Tutorial – Carey ISBN
Cascading Style Sheets Dreamweaver. Styles Determine how the HTML code will display Determine how the HTML code will display Gives designers much more.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
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.
Document Type Definitions Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
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
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
XP 1 DECLARING A DTD A DTD can be used to: –Ensure all required elements are present in the document –Prevent undefined elements from being used –Enforce.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 2 1 New Perspectives on Creating Web Pages With HTML Tutorial 2: Adding Hypertext Links to.
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
XML Extensible Markup Language Aleksandar Bogdanovski Programing Enviroment LABoratory
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.
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.
Chapter 6 Introducing Cascading Style Sheets Principles of Web Design, 4 th Edition.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
XLinks Praveen Polishetty. Contents : XLink Capabilities XLink Concepts XLink Core Properties XLink Semantic Properties XLink Behavior Properties XLink.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
XP 1 HTML Tutorial 2: Developing a Basic Web Site.
INFSY 547: WEB-Based Technologies Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
SNU OOPSLA Lab. Logical structure © copyright 2001 SNU OOPSLA Lab.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Introducing XLink and XPointer ©NIITeXtensible Markup Language/Lesson 10/Slide 1 of 23 Objectives In this lesson, you will learn to: * Identify the types.
HTML Links HTML uses a hyperlink to another document on the Web.
XML Validation II Advanced DTDs + Schemas Robin Burke ECT 360.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Linking XML Documents Ellen Pearlman Eileen Mullin Programming the Web.
SNU OOPSLA Lab. XML Documents 2 : Additional issues The ubiquitous XML(3) © copyright 2001 SNU OOPSLA Lab.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
CHAPTER TWO HTML TAGS. 1.Basic HTML Tags 1.1 HTML: Hypertext Markup Language  HTML stands for Hypertext Markup Language.  It is the markup language.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
SNU OOPSLA Lab. A Tour of XML © copyright 2001 SNU OOPSLA Lab.
Internet & World Wide Web How to Program, 5/e 1. 2.
LINKS.
Introduction to XHTML.
WEBSITE DESIGN Chp 1
Session III Chapter 6 – Creating DTDs
New Perspectives on XML
Lesson 4: Hyperlinks.
Session II Chapter 6 – Creating DTDs
New Perspectives on XML
Presentation transcript:

SNU OOPSLA Lab. Hypertext links(XLL) © copyright 2001 SNU OOPSLA Lab.

SNU OOPSLA Lab. Contents Concepts XML syntax basic links XML linking specification URLs Link behavior Extended pointers Attribute name conflicts Link value strategies

SNU OOPSLA Lab. Basic Link Source –a phrase that directs the reader’s attention to other information Target –is located at the start of the required text

SNU OOPSLA Lab. Terminology Resource –target object Linking element –source Traversal –the act of moving from the liking element to the resource

SNU OOPSLA Lab. Terminology(Cont’d) Simple link –the primitive one-directional linking scheme, but make it possible to traverse links between documents

SNU OOPSLA Lab. URLs Objects are identified using the URL mechanism See Details … Details The details are …...

SNU OOPSLA Lab. Attributes in the Linking Element Attributes in the linking element can influence –the means by which a link can be activated a link could be activated by the person(‘user’ link) directly by the application(‘auto’ link) –the presentation technique required once it has been activated application may jump to the specified resource(‘replace’) display the resource in another window(‘new’) insert the resource into the original text(‘embed’)

SNU OOPSLA Lab. Extended Link Extended link –resources can be cross-related –an extended link contains a number of locator elements, each one points to a resource

SNU OOPSLA Lab. Out-of-line Link Out-of-line link –provides facility of separating the extended link from all the resources it defines –may physically appear in-line, in the sense that it is placed in the flow of text –a more obvious place to put out-of-line links is at the top of the document

SNU OOPSLA Lab. Extended Link Group Extended link group –a number of extended document pointers are used to identify all the inter-linked documents –they are contained in an extended group element => all the documents concerned are deemed to be pointers to each other

SNU OOPSLA Lab. XML syntax basic links This is Section 6 … Please refer to Section 6 for more details

SNU OOPSLA Lab. Identifying links Assumes –advanced linking features described here are not inherent in the XML syntax –so are not based on reserved attribute types –an XML parser is therefore unable to validate the links –there is another layer of software, an ‘XML link processor’ interrogates the parsed document instance, and possibly also the DTD to detect and activate linking feature

SNU OOPSLA Lab. Identifying links(Cont’d) If no DTD, the reserved attributes may be stored in the document the link When a DTD is used, this information is stored in the attribute declaration <!ATTLIST link xml-link CDATA #FIXED “simple” href CDATA #REQUIRED> the link

SNU OOPSLA Lab. Simple Links Simple link –contains only one resource locator –only the Href and xml-link attributes are required –any name can be chosen for the linking element See book 9 for details See Section 9 of the Procedures Manual

SNU OOPSLA Lab. Title and Role Title –it is useful for simple links to be labeled, so that the user can decide whether it would be profitable to follow the link <!ATTLIST link … title CDATA #IMPLIED> … are you going to Scarborough fair? Role –is used to create categories of link that can be accessed by specialized browsers <!ATTLIST link … role CDATA #IMPLIED> … are you going to Scarborough fair?

SNU OOPSLA Lab. Extended Links Extended links –refer to a number of resources by including embedded resource locators –each locator is stored in a locator element –all related locator elements are grouped within an extended element –the DTD author must ensure that the extended element can contain the locator element, as well as any DTD specific elements appropriate at this point

SNU OOPSLA Lab. Extended Links(Cont’d) Here are some extended links: Locator 1, Locator 2 Here are some extended links: Locator1, Locator2.

SNU OOPSLA Lab. Content Role and Content Title Content role and content title –locators in extended links are labeled with the title attribute –extended link itself, if it is an in-line link, should also have a title and role

SNU OOPSLA Lab. Content Role and Content Title(Cont’d) <!ATTLIST extend … content-role CDATA #IMPLIED content-title CDATA #IMPLIED> Are you going to Scarborough fair? …

SNU OOPSLA Lab. Out-of-link Links In-line links –a link that serves as one of its own resources –a link source that is embedded within the text Out-of-line links –a link that does not serve as one of its own resources –should be considered when a read-only document is involved different links are required for different groups of people, where seeing other’s links is confusing

SNU OOPSLA Lab. Out-of-link Links(Cont’d) The Inline attribute must be set to ‘false’ to identify an out-of-line link Locator 1 Locator 2

SNU OOPSLA Lab. Extended Link Groups Group element –other documents in a group of inter-linked documents can be identified with steps attribute contains a value stating how many steps to take –which contains document element with href attribute Document Hub

SNU OOPSLA Lab. URLs The method for locating entire documents See details Linking a specific element in the current file See details, part 3 –entire document is delivered Indicating that only referenced part of the document is required See details, part 3

SNU OOPSLA Lab. Link Behavior Actuate –user: the links only traversed when explicitly selected by the user –auto: the link is activated automatically as soon as the linking element is presented to the user Show –replace: the browser replaces the source text with the resource required –embed: the resource is brought to and embedded in the source text –new: the browser opens a new window to display the resource, leaving the original window on-screen

SNU OOPSLA Lab. Link Behavior(Cont’d) The show and actuate attributes also appearing in the extended links

SNU OOPSLA Lab. Extended Pointers XPointer – a mechanism for identifying a designated resource by its location Instructions(location terms) in an XPointer –refer to the element hierarchy tree –include references to siblings, children and ancestors –are read from left to right

SNU OOPSLA Lab. Extended Pointers(Cont’d) Examples xml/doc9#ROOT()CHILD(3,chap)STRING(7,”Napoleon”,0) MyServe.MyCorp.com/ xml/doc9? XML-XPTR=ROOT()CHILD(3,chap)STRING(7,”Napoleon”,0)

SNU OOPSLA Lab. Absolute Locations HERE() –identifies the current element(the linking element itself) ID() –specifies an element containing an attribute of type ID ID(sec17) … ’ HTML() –specifies the name of an Anchor element in an HTML document HTML(para3) The third paragraph. …

SNU OOPSLA Lab. Absolute Locations(Cont’d) ROOT() –identifies the entire document as the container of the target resource DITTO() –specifies the result of the first search as the starting-point for this second search

SNU OOPSLA Lab. Relative Locations CHILD() –specifies a child of the current element CHILD(3,.) … <1 … <2 … <3 CHILD(3, *) 13 <1 High Str., <2 NewTown <3

SNU OOPSLA Lab. Relative Locations(Cont’d) CHILD(1, *CDATA) 13 High Str.,<1 NewTown CHILD(3, para) … <1 … … <2 … … <3

SNU OOPSLA Lab. Relative Locations(Cont’d) CHILD(3, para, status, secret) … <1 … <2 … … <3 CHILD(2, para, author, “D. Adams”) … … <1 … … <2

SNU OOPSLA Lab. Relative Locations(Cont’d) CHILD(3, para, status, *IMPLIED) … … <1 … <2 … … <3 CHILD(3, PARA, STATUS, *) … <1 … … <2 … <3 …

SNU OOPSLA Lab. Relative Locations(Cont’d) ANCESTOR() –specifies a search through enclosing elements FSIBLING() –identifies a following sibling –to select next element: … … <1 –to select the penultimate element: … … < -2 … < -1

SNU OOPSLA Lab. Relative Locations(Cont’d) PSIBLING() –identifies a previous sibling to the current element –to select the previous element … <1 … –to select the second element in the enclosing element … < -1 … < -2 …

SNU OOPSLA Lab. Relative Locations(Cont’d) DESCENDANT() –indicates an element anywhere within the location source FOLLOWING() –has a similar effect as DESCENDANT, except that it not bounded by the current element’s end-tag, but searches on to the end of the document PRECEDING() –initiates a search back through the document, ignoring document hierarchies

SNU OOPSLA Lab. Relative Locations(Cont’d) STRING() –locates a given letter, word, phrase or other string of text, such as ‘Napoleon the Emperor’ –the first parameter is an occurrence counter –the second parameter is the string to find STRING(1, ‘Napoleon the Emperor’, 0) Using the N element for name and Occ for occupation, “Napoleon the Emperor” is coded… <1

SNU OOPSLA Lab. Relative Locations(Cont’d) STRING() –tags are transparent to the search: STRING(1, ‘Napoleon the Emperor’, 0) Using the N element for name and Occ for occupation, “Napoleon the Emperor” is coded… <1 Napoleon the Emperor <2 –the third parameter is a value specifying an offset from the start of the search text STRING(1, ‘Napoleon the Emperor’, 7) Using the N element for name and Occ for occupation, “Napoleon the Emperor” is coded… <1 Napoleon the Emperor <2

SNU OOPSLA Lab. Attribute Name Conflicts xml-attribute attribute can be used to rename the others <!ATTLIST link xml-attributes CDATA“show xshow” xshow (embed|replace|new) “replace”> <!ATTLIST link xml-attributes CDATA“show xshow title xtitle” xshow (embed|replace|new) “replace” xtitle CDATA#IMPLIED> <!ATTLIST link xml-attributes “href target” target CDATA #REQUIRED> …

SNU OOPSLA Lab. Link Value Strategies Document authors are usually required to generate identifiers for new objects –simply assign the next available sequential value –assigning the title, or an abbreviation of the title, to a locator: –an abbreviated reference scheme may be considered see Chapter 7, Paragraph 12