Examples from Chapter 17 of The XML 1.1 Bible, XLinks
Listing 17-1: An Extended Link with One Local and Four Remote Resources
Listing 17-2: A DTD That Declares the WEBSITE, NAME, HOMESITE, and MIRROR Elements
Listing 17-3: An Extended Link with Arcs
Listing 17-4: Labels Can Be Shared between Resources
Listing 17-5: An Omitted xlink:to Attribute
Listing 17-6: A DTD for the WEBSITE Extended Link
Listing 17-7: An Out-of-Line Extended Link
Listing 17-8: An Out-of-Line Extended Link
Listing 17-9: Setting the Base URL with a BASE Element in HTML
Listing 17-10: Setting the Base URL with an xml:base Attribute in XML
Listing 17-11: An xml:base Attribute on a Nonroot Element
Listing 17-12: Multiple xml:base Attributes
Listing 17-13: Relative URLs in xml:base Attributes
Listing 17-14: URLs Outside the Root Element
Copyright 2004
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 1, 2004