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

Adding xml:base attributes - another example


Element "reference" in file f1.xml references file "http://www.zvon.org/a/b.xml".


File f1.xml

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