[uf-dev] <base> and @xml:base

Derrick Lyndon Pallas derrick at pallas.us
Wed Jan 31 18:53:32 PST 2007


What is the href of the anchor in the following document, which has a 
base URL of "http://www.example.com/"

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head xml:base="bar/" >
          <title>Confusing</title>
          <base href="foo/">
      </head>
      <body xml:base="../">
          <a href="link.xml">text</a>
      </body>
  </html>

Is it <http://www.example.com/foo/link.xml> or 
<http://www.example.com/bar/link.xml>? In other words, how does <base> 
interact with @xml:base? Is this question outside the scope of this 
mailing list? ~D



More information about the microformats-dev mailing list