Linking XML

XML Foundations [./]
Fall 2009 — INFO 242 (CCN 42575)

Erik Wilde, UC Berkeley School of Information
2009-11-24

Creative Commons License [http://creativecommons.org/licenses/by/3.0/]

This work is licensed under a CC
Attribution 3.0 Unported License
[http://creativecommons.org/licenses/by/3.0/]

Contents E. Wilde: Linking XML

Contents

E. Wilde: Linking XML

(2) Abstract

XML is centered around the idea of documents, but many scenarios go beyond single documents and link various documents to represent a more comprehensive dataset. XML itself has little support for linking documents, but mechanisms such as xml:id, XML Inclusions (XInclude), XML Linking Language (XLink), and the Resource Description Framework (RDF) can be used to overlay linking semantics without having to start from scratch.



E. Wilde: Linking XML

(3) Links in XML



XML IDs with xml:id

Outline (XML IDs with xml:id)

  1. XML IDs with xml:id [1]
  2. XML Inclusions (XInclude) [2]
  3. XML Linking Language (XLink) [15]
    1. Simple Links [1]
    2. Extended Links [11]
    3. XLink Problems [3]
  4. Conclusions [1]
XML IDs with xml:id E. Wilde: Linking XML

(5) References in Instances

<section id="introduction">
<section xml:id="introduction">


XML Inclusions (XInclude)

Outline (XML Inclusions (XInclude))

  1. XML IDs with xml:id [1]
  2. XML Inclusions (XInclude) [2]
  3. XML Linking Language (XLink) [15]
    1. Simple Links [1]
    2. Extended Links [11]
    3. XLink Problems [3]
  4. Conclusions [1]
XML Inclusions (XInclude) E. Wilde: Linking XML

(7) Including Trees into Trees

<x xmlns:xi="http://www.w3.org/2001/XInclude">
	<xi:include href="something.xml"/>
	<xi:include xpointer="xmlns(xi=http://www.w3.org/2001/XInclude)xpointer(x/xi:include[1])" parse="xml"/>
</x>


XML Inclusions (XInclude) E. Wilde: Linking XML

(8) XInclude Schema

<!ELEMENT xi:include (xi:fallback?)>
<!ATTLIST xi:include
    xmlns:xi        CDATA       #FIXED    "http://www.w3.org/2001/XInclude"
    href            CDATA       #IMPLIED
    parse           (xml|text)  "xml"
    xpointer        CDATA       #IMPLIED
    encoding        CDATA       #IMPLIED
    accept          CDATA       #IMPLIED
    accept-language CDATA       #IMPLIED
>


Conclusions

Outline (Conclusions)

  1. XML IDs with xml:id [1]
  2. XML Inclusions (XInclude) [2]
  3. XML Linking Language (XLink) [15]
    1. Simple Links [1]
    2. Extended Links [11]
    3. XLink Problems [3]
  4. Conclusions [1]
Conclusions E. Wilde: Linking XML

(29) Linking XML



2009-11-24 XML Foundations [./]
Fall 2009 — INFO 242 (CCN 42575)