RE: SEARCH by last path segment, Was: SEARCH for displayname

Hi,

the starting set is always "ALL", which is defined by href and depth.

1) res = all
2) res = all AND NOT excluded
3) res = all AND included
4) res = all AND included AND NOT excluded

Does this make it clear? Any suggestion to add it to the the proposal?

Regards,
Martin



-----Original Message-----
From: Julian Reschke [mailto:julian.reschke@gmx.de]
Sent: Dienstag, 18. November 2003 09:51
To: Wallmer, Martin
Cc: www-webdav-dasl@w3.org
Subject: Re: SEARCH by last path segment, Was: SEARCH for displayname



Wallmer, Martin wrote:

> Hi,
> 
> the starting set is the scope without any filter. I think we have to 
> define whats happening when include or exclude is omitted. So I'd suggest:
> 
> include-lastpathsegment:
> all files are included when omitted
> 
> exclude-lastpathsegment:
> no files are excluded when omitted.
> 
> 
> So my proposal is:
> 
> The content of DAV:include-lastpathsegment and DAV:exclude-lastpathsegment
> is a literal pattern same as defined for (@see 5.15.1) Like.
> When one or more child elements DAV:include-lastpathsegment are present, 
> the
> scope includes all resources, of which the last pathsegment of the uri
> matches the pattern. <add> All resources are included when omitted. </add>
> When one or more child elements DAV:exclude-lastpathsegment are present, 
> the
> scope excludes all resources, of which the last pathsegment of the uri
> matches the pattern. <add> No resources are excluded when omitted.</add>
> 
> ...

Martin,

I still have a hard time figuring out what it means to have both child 
elements. You write:

	DAV:include-lastpathsegment: All resources are included when
omitted.

and

	DAV:exclude-lastpathsegment: No resources are excluded when omitted.

so what is the base set when both are present?

Given:

all: all resources in scope
exc: resources matching exclude patterns
inc: resources matching include patterns

What is the result set in the following four cases:

1) no includes, no excludes
2) just excludes
3) just includes
4) both

?

My understanding:

1) res = all
2) res = all - exc
3) res = inc

but what is the answer for 4?


Regards, Julian







-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

Received on Tuesday, 18 November 2003 04:54:28 UTC