RE: content type for WebDAV request/response bodies, was: [ACL] Access Control Protocol -07 submitted

> From: Matt Timmermans [mailto:mtimmerm@opentext.com]
> Sent: Wednesday, November 21, 2001 6:45 PM
> To: 'Julian Reschke'; 'WebDAV'
> Subject: RE: content type for WebDAV request/response bodies, was: [ACL]
> Access Control Protocol -07 submitted
> 
> 
> 
> From: Julian Reschke
> >
> > From: Matt Timmermans
> > > If the property's namespace ends in "/" or ":", then the
> > property HREF is
> > > namespace+local_name, just like Today.
> > >
> > > Otherwise, the property HREF is namespace+"#"+local_name.
> >
> > How do you encode the local name? Given an arbitrary URI, how
> > do you select
> > base URI and element name? ...and so on. It doesn't work.
> 
> To encode a general local name, you use UTF8 encoding and %xx escapes, as
> recommended in section B.2.1 of the HTML spec.
> 
> http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.1
> 
> To get the namespace URI and local name from a property URI, just scan
> backwards for the last '#', '/', or ':', and split the URI.  If the left
> part ends in #, then remove it.

That doesn't give you a one-to-one mapping.

For instance:

<foo xmlns="http://a.b.c/d#"/> and <foo xmlns="http://a.b.c/d"/>

would map to the same URI.

How would you map

<foo xmlns="http://a.b.c/d#e"/>

???

Received on Wednesday, 21 November 2001 12:51:38 UTC