W3C home > Mailing lists > Public > www-xml-linking-comments@w3.org > April to June 2000

Scope of xml:base

From: Philippe Le Hegaret <plh@w3.org>
Date: Thu, 13 Apr 2000 12:11:40 -0400
Message-ID: <38F5F1BC.3F785B0@w3.org>
To: www-xml-linking-comments@w3.org
In http://www.w3.org/TR/2000/WD-xmlbase-20000221#AEN1_4_2_2

"The base URI specified by xml:base sets the base URI information set property
of the element on which this attribute occurs, .."


"The value of the xml:base attribute may itself be a relative URI, in which
case it must itself be resolved against the base URI of the element it appears

The document http://www.example.com contains :

<c xml:base="x/">
  <b xml:base="y/">
    <a href="z/doc.xml>activate here</a>
    <d xml:base='http://www.example.com/slurp.xml'/>

According to 1), the base URI information set properties are :

[document]  http://www.example.com
c           http://www.example.com/x
b           http://www.example.com/x/y
a           http://www.example.com/x/y
d           http://www.example.com/slurp.xml
a/@href     doesn't have a base URI property
a/text()    don't have a base URI property

Absolute URI of href is :
a           http://www.example.com/x/y/z/doc.xml

According to 2), the base URI of b is used to resolve the absolute
URI of his attribute xml:base which is supposed to specify the base URI
of the element b !?!?

Received on Thursday, 13 April 2000 12:11:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:32:21 UTC