W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > April to June 2010

Re: DAV:privilege element - multiple child elements?

From: Julian Reschke <julian.reschke@gmx.de>
Date: Wed, 09 Jun 2010 13:32:31 +0200
Message-ID: <4C0F7BCF.7000206@gmx.de>
To: "Weber, Heiko" <Heiko.Weber@softwareag.com>
CC: WebDAV <w3c-dist-auth@w3.org>
On 09.06.2010 12:06, Weber, Heiko wrote:
> ...
> If we allow user defined elements, why do we then want to limit it to be
> an element without attributes and sub elements though?
> ...

In general, it depends on the context. For instance, DAV:property can be 
just a name (in the PROPFIND request), or contain stuff (in PROPPATCH, 
and the PROPFIND result).

> ...
> If all we are interested in is the QName of the element it would make
> much more sense to simply put an attribute into the DAV:privilege
> element containing the QName of the privilege. Ok, that was modeled
> differently historically, so possibly we just have to live with that.
> ...

WebDAV mostly avoids attributes, and furthermore processing QNames in 
content is very easy to get wrong; thus sticking with elements IMHO was 
the right design decision.

Best regards, Julian
Received on Wednesday, 9 June 2010 11:33:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 June 2010 11:33:10 GMT