Examples from Chapter 20 of The XML Bible, Gold Edition: XLinks
Listing 20-1: An extended link with one local and four remote resources
Listing 20-2: A DTD that declares the WEBSITE, NAME, HOMESITE, and MIRROR elements
Listing 20-3: An extended link with arcs
Listing 20-4: Labels can be shared between resources
Listing 20-5: An omitted to attribute
Listing 20-6: A DTD for the WEBSITE extended link
Listing 20-7: An out-of-line extended link
Listing 20-8: Another out-of-line extended link
Listing 20-9: Setting the base URL with a BASE element in HTML
Listing 20-10: Setting the base URL with an xml:base attribute in XML
Listing 20-11: An xml:base attribute on a nonroot element
Listing 20-12: Multiple xml:base attributes
Listing 20-13: Relative URLs in xml:base attributes
Listing 20-14: URLs outside the root element
Copyright 1999, 2001
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified at August 14, 2001