W3C home > Mailing lists > Public > ietf-dav-versioning@w3.org > July to September 2001

RE: Use of attributes

From: Clemm, Geoff <gclemm@rational.com>
Date: Sun, 5 Aug 2001 13:50:23 -0400
Message-ID: <3906C56A7BD1F54593344C05BD1374B103CA947A@SUS-MA1IT01>
To: DeltaV <ietf-dav-versioning@w3.org>
   From: Lisa Dusseault [mailto:lisa@xythos.com]

   To be consistent with how 2518 does PROPFIND, PROPPATCH, etc. I would
have
   expected:
     <D:supported-live-property-set xmlns:D="DAV:"
   xmlns:x="http://www.xythos.com/schemas/StorageServer"/>
	<D:getcontentlength/>
	<x:quota/>
	...
     </D:supported-live-property-set>

   But the DeltaV draft requires the following syntax:
     <supported-live-property-set>
	<supported-live-property name="getcontentlength" namespace="DAV:"/>
	<supported-live-property name="quota"
   namespace="http://www.xythos.com/schemas/StorageServer"/>
	...
     </supported-live-property-set>

   Is there some merit to doing things this way that isn't immediately
   obvious?

This was done at the request of the folks who care about syntactic
validation (e.g. DTD or XML-Schema).  It is expected that this
report will be extended with other interesting metadata about the
supported live properties (e.g. DAV:is-computed).  By using the
DAV:supported-live-property node, this can be declared as:

<!ELEMENT supported-live-property (is-computed?)>


   Aside from consistency and stylistic considerations, the syntax in the
draft
   is just plain broke. The DTD for supported-live-property set hardwires
the
   namespace to DAV:

   <!ATTLIST supported-live-property namespace NMTOKEN "DAV:">

This does not hardwire the namespace to be "DAV:", it just specifies
that the "DAV:" is the default if no explicit namespace attribute is
specified.

Cheers,
Geoff
Received on Sunday, 5 August 2001 13:43:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 13:57:42 GMT