On Wednesday 20 April 2005 12:56, Paul Hussein wrote:
> I am trying to get my DASL search to order my results.
>
> I use this XML
>
> <D:searchrequest xmlns:D="DAV:">
> <D:basicsearch><D:select><D:allprop/></D:select><D:from><D:scope>
> <D:href></D:href><D:depth>1</D:depth></D:scope></D:from></D:basicsearch>
> <D:orderby>
>    <D:order>
>       <D:prop><D:displayname/></D:prop>
>    </D:order>
> </D:orderby>
> </D:searchrequest>
>
>
> Can anyone tell me why my results done order on the displayname ?
>
>
> Cheers
>
> Paul.
>

Probably is the </D:basicsearch> tag that should be moved after the 
</D:orderby> tag. This *should* make the <D:orderby> tag ignored .

A question : wouldn't it be nice if the grammar parser could tell the end user 
of the <D:orderby> tag outside the <D:basicsearch> tag ? In general : since 
the specification says that the server MUST support the <D:basicsearch> 
grammar and MAY support other grammars, I wouldn't it be nice to have some 
sort of "unknown grammar" exception in a case like this (<D:orderby> is not a 
grammar as I know) ?


Marco
-- 
Lack of money is the root of all evil.
                -- George Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to