Re: [xml] VMS and Including Schemas



On Mon, Jun 07, 2004 at 11:03:38AM -0600, Martin Leese wrote:
Daniel Veillard <veillard redhat com> wrote:

 This is not a problem in libxml2 as far as I can tell, it's a problem
in your Schemas.
 The Schemas specification is really clear about this, the value of
the schemasLocation is an URI-Reference, as defined by RFC 2396. This is
*not* a filename. So you will have to convert this to an URI, this means
you will have to prefix it with file:/// (3 slashes, please read the spec
explaining what this means) and possibly %escape other problematic 
characters
like the $ sign.

Hi,

I read the RFC 2396 spec but didn't see any reference to
three slashes.  Could you please put a little more meat
in these bones and tell me what to look for.

c.f.: 3.2.2. Server-based Naming Authority

  format for those kind of URLs are
    protocol://host+user+passwd/pathtoresource

it also state that RFC 1738 defines some existing schemes
  http://www.faqs.org/rfcs/rfc1738.html

  File is 3.10 FILES
  "As a special case, <host> can be the string "localhost" or the empty
   string; this is interpreted as `the machine from which the URL is
   being interpreted'."

   
  hence file:///foo/bar

is /foo/bar on localhost machine
while file://foo/bar
is /bar on the foo machine.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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