W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > October to December 2001

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

From: Julian Reschke <julian.reschke@gmx.de>
Date: Wed, 21 Nov 2001 18:51:24 +0100
To: <mtimmerm@opentext.com>, "'Julian Reschke'" <julian.reschke@gmx.de>, "'WebDAV'" <w3c-dist-auth@w3.org>
Message-ID: <JIEGINCHMLABHJBIGKBCCEDADIAA.julian.reschke@gmx.de>
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:43:59 GMT