W3C home > Mailing lists > Public > www-zig@w3.org > February 2002

Re: 2 simple questions (?)

From: Mike Taylor <mike@tecc.co.uk>
Date: Tue, 19 Feb 2002 14:35:58 GMT
Message-Id: <200202191435.OAA20432@wells.tecc.co.uk>
To: pvanlierop@geac.fr
CC: www-zig@w3.org
> Date: Tue, 19 Feb 2002 11:35:42 +0100
> From: Pieter Van Lierop <pvanlierop@geac.fr>
> 
> 2. what is correct server behavior in a boolean operation when one
> part of the operation results in a diagnostic?
> Example:
> search 1003 jones = 40 hits
> OR
> search 1004 jones = Unsupported Use attribute.

The operation has failed, then: the server couldn't execute the
search.

> Should the server reply with a non-surrogate diagnostic saying
> Unsupported Use Attribute or should it say: 40 records found.

Absolutely the former!  Consider this example

	search 1003 veryUnusualWord = 0 hits
	OR
	search 1004 veryCommonWord = Unsupported Use attribute

You wouldn't want your server to tell the user that there are no hits
on either term, would you?  Probably there are loads of veryCommonWord
hits, but you need to sort your attribute out.

 _/|_	 _______________________________________________________________
/o ) \/  Mike Taylor   <mike@miketaylor.org.uk>   www.miketaylor.org.uk
)_v__/\  "They paved paradise and put up a parking lot" -- Joni
	 Mitchell, "Big Yellow Taxi"
Received on Tuesday, 19 February 2002 09:36:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:27 UTC