W3C home > Mailing lists > Public > www-webdav-dasl@w3.org > October to December 2002

DAV:gte vs. numerical property values

From: Julian Reschke <julian.reschke@gmx.de>
Date: Tue, 22 Oct 2002 13:47:10 +0200
To: <www-webdav-dasl@w3.org>
Message-ID: <JIEGINCHMLABHJBIGKBCIEBEFKAA.julian.reschke@gmx.de>


let's consider a dead property "foo", and some resources a, b and c on which
this dead property is defined and has the values "1", "3" and "10".

Consider a DAV:basicsearch with the where clause:

<gte xmlns="DAV:">
  <prop><foo xmlns=""/></prop>

Which resource will match?

As DAV:basicsearch currently isn't type-aware, the server will have to do a
string comparison, and only the b (with value "3") will match.

Is this really sufficient? It basically means that dead property comparisons
are restricted to strings.


a) If the server happens to have type information for a dead property, it
should try to do a comparison according to the known property type, if the
literal can be parsed into this type. This basically replicates the
behaviour that a client would expect when querying on live properties such
as DAV:getcontentlength, so it could be taken as a simple clarification.

Extended proposal:

b) A client can enforce comparison using a specific data type by specifying
the type in the query, for instance using:

<gte xmlns="DAV:">
  <prop><foo xmlns=""/></prop>
  <literal xsi:type="xs:long">3</literal>



<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
Received on Tuesday, 22 October 2002 07:47:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:22:43 UTC