Re: [xml] parser warning: URI is not absolute

On Wed, Dec 08, 2004 at 09:11:19AM +0300, Oleg A. Paraschenko wrote:

  while parsing the document

<doc xmlns='my-ns1'/>

  I get the error:

test.xml:1: warning: xmlns: URI my-ns1 is not absolute

  What is the reason to issue the warning? I haven't found anything
in the "Namespaces in XML 1.1" recommendation that recommends to do so.

  Well then you have misssed a big debate which went afterward:
  - a relatively clear description of the problem can be found at
  - the official W3C result

 In a nutshell:

"the use of relative URI references in namespace declarations are deprecated"

It's still conformant to the spec, that's why it's only a warning at the
libxml2 level.

 If you really want to understand why, you can read the archives of the
xml-uri list for May-June 2000


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]