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

xml:base attribute on parent element


If there is no xml:base attribute on the element, the base URI of the element's parent element is used.


File f1.xml

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