>> English << | česky ZVON > Tutorials > XML Base Tutorial
>> Example 8 << | Prev | Next | Contents

Nested xml:base attributes with absolute URLs


Here the inner xml:base attribute overrides the value set by the outer xml:base attribute.


File f1.xml

     1 <doc xml:base = "http://www.zvon.org/" xmlns:xlink="http://www.w3.org/1999/xlink" >
          2 <p xml:base = "http://www.zvon.org/yy/" >
                <reference xlink:href = "a.xml" xlink:type = "simple" />
           </p>
      </doc>
1Base URI of element doc : http://www.zvon.org/
2Base URI of element p : http://www.zvon.org/yy/
Link xlink:href : http://www.zvon.org/yy/a.xml