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

Intro - xml:base attribute on element


The xml:base attribute can specify an arbitrary base URI. In file f2.xml (http://www.somewhere.com/f2.xml), the base URI is changed by the xml:base attribute.


File f2.xml (URL: http://www.somewhere.com/f2.xml)

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