O'Reilly logo

Secure XML: The New Syntax for Signatures and Encryption by Kitty Niles, Donald E. Eastlake

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required