Background

The URL standard includes the concept of 'relative' URL references (see Chapter 30 for details). With such references, it is necessary to determine a starting point, or 'base' location, from which to follow the URL path to the required resource. By default, the starting point is the directory containing the document that includes the URL reference. While useful, this assumption can be too limiting. If the document is moved to a new location, but the related resources are not, the URL reference becomes broken. When many references are involved, it can be a considerable editing task to fix them all.

A better solution would be to enable the base location to be changed, within the document, in order to fix all of the broken references. ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.