 2002 Prentice Hall, Inc. All rights reserved. 1 XLink and XPointer Outline 1Introduction 2XML Linking Language (XLink) 2.1 Simple Links 2.2 Extended.

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

Applications of XSLT. generating Word documents WordML provides formatting and content elements Word 2003 can read WordML files XSLT can be used to transform.
4. Internet Programming ENG224 INFORMATION TECHNOLOGY – Part I
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.
Introduction to XLink Transparency No. 1 Introduction to XML Linking Language (XLink) Cheng-Chia Chen.
1 Linking in XML A way of creating hyperlinks in XML documents, Internal-Link and External-Link.
XLink Van Lepthien CSCI 7818 Fall Overview What is XLink? W3C Stuff XLink Elements Linkbases Traversals Implementations Comments References.
 2002 Prentice Hall, Inc. All rights reserved. ISQA 407 XML/WML Winter 2002 Dr. Sergio Davalos.
1 COS 425: Database and Information Management Systems XML and information exchange.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 11 – XML Path Language (XPath) Outline 11.1Introduction 11.2Nodes 11.3Location Paths Axes.
XLINK A mechanism to link xml documents. Fujitsu’s free xlink processor xwand/activity/xbrltools/xlip/index.htmlhttp://software.fujitsu.com/en/interstage-
Introduction to XLink Transparency No. 1 How the Minimum Set of Platform Plugins Are Related Cheng-Chia Chen.
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.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Sheet 1XML Technology in E-Commerce 2001Lecture 6 XML Technology in E-Commerce Lecture 6 XPointer, XSLT.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
Xpath Xlink Xpointer Xquery Sources:
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Introducing.
 2002 Prentice Hall, Inc. All rights reserved.2 Chapter 2 — Introduction to HyperText Markup Language 4: Part I Outline 2.1Introduction 2.2Markup Languages.
Sheet 1XML Technology in E-Commerce 2001Lecture 1 XML Technology in E-Commerce Lecture 1 WWW, HTML, CSS, XML, Meta-modeling.
Introduction to GAIGS XML Scripting Integrating Algorithm Visualization into Computer Science Education Grand Valley State University June 13-16, 2006.
 2002 Prentice Hall, Inc. All rights reserved. Chapter 6 – Document Type Definition (DTD) Outline 6.1Introduction 6.2Parsers, Well-formed and Valid XML.
Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Introducing XHTML: Module A: Web Design Basics.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
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.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
 2002 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to the Internet and World Wide Web Outline 1.1Introduction 1.2World Wide Web Consortium.
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.
 2002 Prentice Hall, Inc. All rights reserved. 1 Chapter 12 – XSL: Extensible Stylesheet Language Transformations (XSLT) Outline 12.1Introduction 12.2Setup.
XLinks Praveen Polishetty. Contents : XLink Capabilities XLink Concepts XLink Core Properties XLink Semantic Properties XLink Behavior Properties XLink.
ISO/TC 211 WG4 WI 18 Encoding Foil no. 1 Annex C XML and XMI David Skogan SINTEF Telecom and Informatics
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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.
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.
What is XLink? XLink is short for XML Linking Language XLink is used to create hyperlinks in XML documents Any element in an XML document can behave as.
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.
Cascading Style Sheets (CSS)
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
XML Databases Presented By: Pardeep MT15042 Anurag Goel MT15006.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Introducing XHTML: Module A: Web Design Basics
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
XML QUESTIONS AND ANSWERS
Sec (4.3) The World Wide Web.
Chapter Eight Interoperability How to Build a Digital Library
E-commerce | WWW World Wide Web - Concepts
Project 1 Introduction to HTML.
E-commerce | WWW World Wide Web - Concepts
Introduction to XHTML.
Markup Languages Gilok Choi 9/17/2018
Chapter 7 Representing Web Data: XML
Chapter 27 WWW and HTTP.
XML Linking / DeRose and Durand
Introduction to World Wide Web
Lightweight tools for on-line course development
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Presentation transcript:

 2002 Prentice Hall, Inc. All rights reserved. 1 XLink and XPointer Outline 1Introduction 2XML Linking Language (XLink) 2.1 Simple Links 2.2 Extended Links 3XLink and DTDs 4XML Pointer Language (XPointer) 5 XInclude 6 XBase

 2002 Prentice Hall, Inc. All rights reserved. 2 1 Introduction XLink –Describing links between resources (e.g., documents) XPointer –“Pointing” to document contents –“address” nodes, ranges, and points XInclude –Including existing XML document into another XBase –Specifies “base” URL for relative URLs XForms –XML-based form-processing mechanism SVG (uses XLink) –XML-based graphic rendering

 2002 Prentice Hall, Inc. All rights reserved. 3 2 XML Link Language (XLink) XLink –Links “resources” from XML documents E.g., link documents, audio, video, database data, etc. –Resources accessed through multiple links –More flexible features than Hyperlinks –Simple links or extended links –HTML, HyTime, and text Encoding Initiative (TEI) are the most influential

 2002 Prentice Hall, Inc. All rights reserved Simple Links Simple links –Links one resource to another (similar to HTML Hyperlink), it is an inline link. –Linking elements Specify linking information <book xlink:type = "simple" xlink:href = "/textbooks/xmlHowToProgram.xml"> Linking element ( book ) is local resource xmlHowToProgram.xml is remote resource –Arc Markup that specifies how to traverse between resources

 2002 Prentice Hall, Inc. All rights reserved. 5 Fig. 1 Illustrating a simple link.

 2002 Prentice Hall, Inc. All rights reserved. 6 An Sample DTD of [Simple] Element <!ATTLIST simple xmlns:xlink CDATA #FIXED “ xlink:type CDATA #FIXD “simple” xlink:href CDATA #REQUIRED xlink:role CDATA #IMPLIED xlink:arcrole CDATA #IMPLIED xlink:title CDATA #IMPLIED xlink:show CDATA (new|replace|embed|other|none) #IMPLIED xlink:actuate CDATA (onLoad|onRequest|other|none) #IMPLIED

 2002 Prentice Hall, Inc. All rights reserved. Outline 7 Fig. 2 XML document with a simple link. Lines Deitel & Associates, Inc. is an internationally recognized 9corporate training and content creation organization specializing 10in programming languages, Internet/World Wide Web technology and 11object technology education. Deitel & Associates, Inc. is a 12member of the World Wide Web Consortium. The company provides 13elementary through advanced courses on Java, C++, Visual Basic, 14C, Perl, Python, XML, Internet and World Wide Web programming, 15e-business and e-commerce programming and Object Technology. 16The principals of Deitel & Associates, Inc. are <contact 19 xlink:type = "simple" 20 xlink:href = "about.xml" 21 xlink:role = " 22 xlink:title = "Read about Harvey Deitel"> Dr. Harvey Deitel Create simple XLink link in element contact with about.xml as remote resource

 2002 Prentice Hall, Inc. All rights reserved. Outline 8 Fig.2 XML document with a simple link (Part 2). 27 and Paul J. Deitel. The company&apos;s clients include many of 28 the world&apos;s largest computer companies, government agencies, 29 branches of the military and business organizations. Through its 30 publishing partnership with Prentice Hall, Deitel & Associates, 31 Inc. publishes leading-edge programming textbooks, professional 32 books, interactive CD-ROM-based multimedia Cyber Classrooms, 33 satellite courses and Web-based training courses. 34

 2002 Prentice Hall, Inc. All rights reserved. 9 Output from Fig. 2

 2002 Prentice Hall, Inc. All rights reserved. 10 Output from Fig. 2

 2002 Prentice Hall, Inc. All rights reserved. Outline 11 Fig. 3 Listing for about.xml Dr. Harvey M. Deitel, CEO of Deitel & Associates, Inc., has 840 years experience in the computing field including extensive 9industry and academic experience. He is one of the world&apos;s 10leading computer science instructors and seminar presenters. 11Dr. Deitel earned B.S. and M.S. degrees from the Massachusetts 12Institute of Technology and a Ph.D. from Boston University. 13He worked on the pioneering virtual memory operating systems 14projects at IBM and MIT that developed techniques widely 15implemented today in systems like UNIX, Linux and Windows NT. 16He has 20 years of college teaching experience including earning 17tenure and serving as the Chairman of the Computer Science 18Department at Boston College before founding Deitel & 19Associates, Inc. with Paul J. Deitel. He is author or co-author 20of several dozen books and multimedia packages and is currently 21writing many more. With translations published in Japanese, 22Russian, Spanish, Elementary Chinese, Advanced Chinese, Korean, 23French, Polish, Portuguese and Italian, Dr. Deitel&apos;s texts have 24earned international recognition. Dr. Deitel has delivered 25professional seminars internationally to major corporations, 26government organizations and various branches of the military. 27

 2002 Prentice Hall, Inc. All rights reserved. Outline 12 Fig. 4 Attributes show and actuate. Lines 8-17 Line 13 Line <contact 9 xlink:type = "simple" 10 xlink:href = "about.xml" 11 xlink:role = " 12 xlink:title = "About Harvey Deitel" 13 xlink:show = "new" 14 xlink:actuate = "onRequest"> Dr. Harvey Deitel Create simple XLink link in element contact with about.xml as remote resource Attribute show specifies how to display resources Attribute actuate specifies when resources should be retrieved

 2002 Prentice Hall, Inc. All rights reserved. 13 Output from Fig. 4

 2002 Prentice Hall, Inc. All rights reserved. 14 Output from Fig. 4

 2002 Prentice Hall, Inc. All rights reserved. 15 Attributes of XLink Type – simple or extended (locator, resource, arc) Href – remote resource’s URI Role – URI that references a resource that describes the link (optional) Title – descriptive title for the link (optional) Show – new | replace | embed | undefined Actuate – onLoad | onRequest | undefined

 2002 Prentice Hall, Inc. All rights reserved. 16 Attributes of XLink Show – how to display a resource when it is loaded new -- the resource displayed in a new window … replace – replacing the current resource embed – combining the current resource with the linked element other, none (undefined) – allowing XLink-aware application to decide how to display Actuate – when the resource should be retrieved onLoad – document is retrieved as soon as it is loaded onRequest – doc. should not be retrieved until the user requests it other, none (undefined) – XLink-aware application to decide when to load

 2002 Prentice Hall, Inc. All rights reserved Extended Links Extended links –Link multiple combinations of local and remote resources –Multidirectional links Traverse between resources Can link any number of resources Unidirectional links may not offer return to local resource or the remote resource has no knowledge of the local resource Require multiple elements to accomplish Extended links

 2002 Prentice Hall, Inc. All rights reserved. 18 Two unidirectional links and Multidirectional links

 2002 Prentice Hall, Inc. All rights reserved. 19 A Sample DTD of [extended] Element <!ATTLIST extended xmlns:xlink CDATA #FIXED “ xlink:type CDATA #FIXED “extended” xkink:role CDATA #IMPLIED Xlink:title CDATA #IMPLIED

 2002 Prentice Hall, Inc. All rights reserved. 20 A Sample DTD of [resource] Element <!ATTLIST resource xlink:type CDATA #FIXED “resource” xkink:role CDATA #IMPLIED xlink:title CDATA #IMPLIED xlink:label NMTOKEN #IMPLIED

 2002 Prentice Hall, Inc. All rights reserved. 21 A Sample DTD of [title] Element <!ATTLIST title xlink:type CDATA #FIXED “title” xml:lang CDATA #IMPLIED

 2002 Prentice Hall, Inc. All rights reserved. 22 A Sample DTD of [locator] Element <!ATTLIST locator xlink:type CDATA #FIXED “locator” Xlink:href CDATA #REQUIRED xkink:role CDATA #IMPLIED xlink:title CDATA #IMPLIED xlink:label NMTOKEN #IMPLIED

 2002 Prentice Hall, Inc. All rights reserved. 23 A Sample DTD of [arc] Element <!ATTLIST arc xlink:type CDATA #FIXED “arc” Xlink:arcrole CDATA #REQUIRED xlink:title CDATA #IMPLIED xlink:show (new| replace| embed| undefined) #IMPLIED xlink:actuate (onLoad| onRequest| undefined) #IMPLIED xlink:from NMTOKEN #IMPLIED xlink:to NMTOKEN #IMPLIED

 2002 Prentice Hall, Inc. All rights reserved. Outline 24 Fig. 8 XML document containing extended links. Lines Lines Lines <books xmlns:xlink = " 7 xlink:type = "extended" 8 xlink:title = "Book Inventory"> 9 10 <author xlink:label = "authorDeitel" 11 xlink:type = "locator" 12 xlink:href = "#authors" 13 xlink:role = " 14 xlink:title = "Deitel & Associates, Inc."> Deitel, Harvey 17 Deitel, Paul <publisher xlink:label = "publisherPrenticeHall" 22 xlink:type = "locator" 23 xlink:href = "/publisher/prenticehall.xml" 24 xlink:role = " 25 xlink:title = "Prentice Hall"/> <warehouse xlink:label = "warehouseXYZ" 28 xlink:type = "locator" 29 xlink:href = "/warehouse/xyz.xml" 30 xlink:role = " 31 xlink:title = "X.Y.Z. Books"/> Mark up link to book’s authorsMark up link to publisherMark up link to warehouse

 2002 Prentice Hall, Inc. All rights reserved. Outline 25 Fig. 8 XML document containing extended links (Part 2). Lines Lines Lines Lines <book xlink:label = "JavaBook" 34 xlink:type = "resource" 35 xlink:role = " 36 xlink:title = "Textbook on Java"> 37 Java How to Program: Third edition <arcElement xlink:type = "arc" 41 xlink:from = "JavaBook" 42 xlink:arcrole = " 43 xlink:to = "authorDeitel" 44 xlink:show = "new" 45 xlink:actuate = "onRequest" 46 xlink:title = "About the author"/> <arcElement xlink:type = "arc" 49 xlink:from = "JavaBook" 50 xlink:arcrole = " 51 xlink:to = "publisherPrenticeHall" 52 xlink:show = "new" 53 xlink:actuate = "onRequest" 54 xlink:title = "About the publisher"/> <arcElement xlink:type = "arc" 57 xlink:from = "warehouseXYZ" 58 xlink:arcrole = " 59 xlink:to = "JavaBook" 60 xlink:show = "new" 61 xlink:actuate = "onRequest" 62 xlink:title = "Information about this book"/> 63 Create local resource JavaBook, which links to (or from) an author or publisher Create outbound arc that links to arcrole when user requests it Create outbound arc between book local resource and publisher local resource Create inbound arc that has starting remote reference ( warehouseXYZ ) and ending local resource ( JavaBook )

 2002 Prentice Hall, Inc. All rights reserved. Outline 26 Fig. 8 XML document containing extended links (Part 3). Lines <arcElement xlink:type = "arc"65 xlink:from = "publisherPrenticeHall" 66 xlink:arcrole = " 67 xlink:to = "warehouseXYZ" 68 xlink:show = "embed" 69 xlink:actuate = "onLoad" 70 xlink:title = "Publisher&apos;s inventory"/> Create third-party arc that has both starting and ending remote references ( publisherPrenticeHall and warehouseXYZ )

 2002 Prentice Hall, Inc. All rights reserved. 27 Fig. 9 XLink tree browser rendering of booklinks.xml ©Fujitsu Laboratories Ltd.

 2002 Prentice Hall, Inc. All rights reserved. 28 Fig. 10 Traversing an outbound link. ©Fujitsu Laboratories Ltd.

 2002 Prentice Hall, Inc. All rights reserved. 29 Fig. 11 Traversing an outbound link. ©Fujitsu Laboratories Ltd.

 2002 Prentice Hall, Inc. All rights reserved. 30 Fig. 12 Ending resource shown in a new window. ©Fujitsu Laboratories Ltd.

 2002 Prentice Hall, Inc. All rights reserved. 31 Types of Extended Links locator –Specifies a remote resource resource –Specifies a local resource arc –Outbound arc using attributes from (local) and to (remote) –Inbound arc (starting resource remote and ending resource local) –Third-party arc (both starting and ending resources are remote)

 2002 Prentice Hall, Inc. All rights reserved XLink and DTDs DTDs are often used with documents that use XLink for: –Validation –Reduce the number of XLink attributes in XML document <car xmlns:xlink = " xlink:type = "simple" xlink:role = "MT4606" xlink:title = "The Latest Model"> –Provide default values in DTD, and rewrite as:

 2002 Prentice Hall, Inc. All rights reserved. Outline 33 Fig. 13 DTD for extended XLink example. Lines 4-9 Line 7 Lines Line 13 Lines Line 20 Lines Line <!ATTLIST books 6 xmlns:xlink CDATA #FIXED " 7 xlink:type (extended) #FIXED "extended" 8 xlink:role CDATA #IMPLIED 9 xlink:title CDATA #IMPLIED> <!ATTLIST book 13 xlink:type (resource) #FIXED "resource" 14 xlink:role CDATA #FIXED " 15 xlink:title CDATA #IMPLIED 16 xlink:label NMTOKEN #IMPLIED> <!ATTLIST author 20 xlink:type (locator) #FIXED "locator" 21 xlink:href CDATA #REQUIRED 22 xlink:role CDATA #FIXED " 23 xlink:title CDATA #IMPLIED 24 xlink:label NMTOKEN #IMPLIED> <!ATTLIST publisher 28 xlink:type (locator) #FIXED "locator" 29 xlink:href CDATA #REQUIRED 30 xlink:role CDATA #FIXED " Define element books and its attributes Define element book and its attributes Specify extended link Specify local resource Define element author and its attributes Specify remote resource Define element publisher and its attributes Specify remote resource

 2002 Prentice Hall, Inc. All rights reserved. Outline 34 Fig. 13 DTD for extended XLink example (Part 2). Lines Line 36 Lines xlink:title CDATA #IMPLIED 32 xlink:label NMTOKEN #IMPLIED> <!ATTLIST warehouse 36 xlink:type (locator) #FIXED "locator" 37 xlink:href CDATA #REQUIRED 38 xlink:role CDATA #FIXED " 39 xlink:title CDATA #IMPLIED 40 xlink:label NMTOKEN #IMPLIED> <!ATTLIST arcElement 44 xlink:type (arc) #FIXED "arc" 45 xlink:arcrole CDATA #IMPLIED 46 xlink:title CDATA #IMPLIED 47 xlink:from NMTOKEN #IMPLIED 48 xlink:to NMTOKEN #IMPLIED 49 xlink:show (new | replace | embed | undefined) #IMPLIED 50 xlink:actuate (onLoad | onRequest | undefined) #IMPLIED> Define element warehouse and its attributes Specify remote resource Define element arcElement and its attributes for specifying traversal information

 2002 Prentice Hall, Inc. All rights reserved XML Pointer Language (XPointer) XPointer –References fragments of XML document via a URI Link to specific part of resource, instead of linking to entire resource Link to specific locations (i.e., XPath tree nodes) Link to ranges of locations –Uses XPath to reference XML document nodes –Also used for searching XML documents via string matching

 2002 Prentice Hall, Inc. All rights reserved. Outline 36 Fig. 14 Example contact list. Lines Deitel, Harvey 7 Deitel, Paul 8 Nieto, Tem 9 Mark up contact list that contains ids for three authors

 2002 Prentice Hall, Inc. All rights reserved. 37 XPointer (cont.) In Figure 14 –Assume contact list has relative URI /contacts.xml XLink references entire contact list with URI xlink:href = "/contacts.xml" XPointer references specific part: –Element contact with id of author02 xlink:href = "/contacts.xml#xpointer( = ‘author02]’)" The name xpointer, called a scheme, expresses the full XPoint form. By using unique attribute id, the expression can be simplified by: xlink:href = "/contacts.xml#xpointer(id = ‘author02’)" which can be further simplified by xlink:href = "/contacts.xml#author02"

 2002 Prentice Hall, Inc. All rights reserved. 38 XPointer is used in 4 MIME-Type: text/xml application/xml text/xml-external-parsed-entity application/xml-external-parsed-entity

 2002 Prentice Hall, Inc. All rights reserved. 39 XPointer and XLink XLink and XPointer –XLink links to a designated XML document –XPointer links to internal node or range –XPointer can’t point to different XML document As an example xlink:type=“simple” xlink:href=“../chapter15/15-1.xml #xpointer(/purchaseOrder/customer/person[2])” xlink:title=… Point to the second person element of customer

 2002 Prentice Hall, Inc. All rights reserved. 40 XPointer and XPath XPointer as an extension of XPath –Node location ( 節點 ) –Point location ( 點 ) –Range location ( 範圍 ) Location set xpointer(/AAA/BBB[1]) xpointer(//BBB/DDD[2]) string-range(loc,string,index,length) e.g. xpointer( string-range(//*,’element’,2,4) ) start-point(location-set) e.g. xpointer(start-point(string-range(//*,’element’,1,1)[1]))

 2002 Prentice Hall, Inc. All rights reserved. 41 Range and Point in XPointer string-range() start-point() end-point() range-to() range() For example, 1. xpointer(start-point(string-range(//*.’element’,1,1)[1]) 2. xpointer(start-point(string-range(//*,’third’))) 3. xpointer(start-point(/)) 4. xpointer(start-point(//AAA)) Then, change “start” to “end”, point the location in the example XML file.

 2002 Prentice Hall, Inc. All rights reserved. 42 Sample XML Document first element BBB. second element BBB. element CCC.

 2002 Prentice Hall, Inc. All rights reserved XML Inclusions (XInclude) XInclude –Reuse XML documents –Include XML documents within others –Use xinclude element

 2002 Prentice Hall, Inc. All rights reserved XML Base (XBase) XBase –Provide base URIs for relative links Similar to HTML element base Uses attribute xml:base to provide the base URI for attribute href. The complete URI reference by href is: