7.2. xml:base

Before they can actually be used, relative URIs must be resolved into absolute URIs. A “base” URI is added as the initial portion of the absolute URI. Thus a URI such as

website/images/picture.jpg

if it appears in an HTML Web page fetched from

https://foo.example.com/projects/

would be interpreted as

https://foo.example.com/projects/website/images/picture.jpg

This base information can be obtained from four sources [RFC 2396]:

  1. Base URI information embedded in the document containing the relative URI

  2. The URI of the object immediately containing the relative URI

  3. The URI used to retrieve the overall object in which the relative URI appears

  4. A base URI defined by the application context

Lower-numbered sources in this list dominate ...

Get Secure XML: The New Syntax for Signatures and Encryption 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.