<div dir="ltr">I found this <a href="http://tools.ietf.org/html/draft-daboo-caldav-extensions-01">http://tools.ietf.org/html/draft-daboo-caldav-extensions-01</a> and test=anyof works on the comp-filter eg.<div><br></div><div>
<div style="font-family:arial,sans-serif;font-size:13px"><ns0:comp-filter name="VCALENDAR"></div><div style="font-family:arial,sans-serif;font-size:13px"> <ns0:comp-filter name="VEVENT" test="anyof"></div>
<div style="font-family:arial,sans-serif;font-size:13px"> <ns0:time-range start="20140621T000000Z" end="20140809T000000Z" /></div><div style="font-family:arial,sans-serif;font-size:13px"> <ns0:prop-filter name="LOCATION"></div>
<div style="font-family:arial,sans-serif;font-size:13px"> <ns0:text-match collation="i;octet">1</ns0:text-match></div><div style="font-family:arial,sans-serif;font-size:13px"> </ns0:prop-filter></div>
<div style="font-family:arial,sans-serif;font-size:13px"> <ns0:prop-filter name="LOCATION"></div><div style="font-family:arial,sans-serif;font-size:13px"> <ns0:text-match collation="i;octet">2</ns0:text-match></div>
<div style="font-family:arial,sans-serif;font-size:13px"> </ns0:prop-filter></div><div style="font-family:arial,sans-serif;font-size:13px"> </ns0:comp-filter></div><div style="font-family:arial,sans-serif;font-size:13px">
</ns0:comp-filter></div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">But that implies that I get events for LOCATION 1 and 2 regardless of time-range.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I tried to put the test="anyof" param on the prop-filters but that didn't work, even when I added multiple text-match elements to the same prop-filter like so</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> <ns0:comp-filter name="VEVENT"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
<ns0:time-range start="20140621T000000Z" end="20140809T000000Z" /></div><div style="font-family:arial,sans-serif;font-size:13px"> <ns0:prop-filter name="CATEGORIES" test="anyof"></div>
<div style="font-family:arial,sans-serif;font-size:13px"> <ns0:text-match collation="i;octet">1</ns0:text-match></div><div style="font-family:arial,sans-serif;font-size:13px"> <ns0:text-match collation="i;octet">2</ns0:text-match></div>
<div style="font-family:arial,sans-serif;font-size:13px"> </ns0:prop-filter></div><div style="font-family:arial,sans-serif;font-size:13px"> </ns0:comp-filter></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">That causes an error on the server:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Too many children of type {urn:ietf:params:xml:ns:caldav}text-match for {urn:ietf:params:xml:ns:caldav}prop-filter</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
So I'm still stumped...</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Atli</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 4 July 2014 12:34, Atli Thorbjornsson <span dir="ltr"><<a href="mailto:atlithorn@gmail.com" target="_blank">atlithorn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi guys, is there a way to "OR" prop-filters?<div><br></div><div>I'm looking for all events that occur in either LOCATION 1 or 2.</div><div><br></div><div>This is what I have been trying:</div>
<div><br></div><div><div><ns0:comp-filter name="VCALENDAR"></div><div> <ns0:comp-filter name="VEVENT"></div><div> <ns0:time-range start="20140621T000000Z" end="20140809T000000Z" /></div>
<div> <ns0:prop-filter name="LOCATION"></div><div> <ns0:text-match collation="i;octet">1</ns0:text-match></div><div> </ns0:prop-filter></div><div> <ns0:prop-filter name="LOCATION"></div>
<div> <ns0:text-match collation="i;octet">2</ns0:text-match></div><div> </ns0:prop-filter></div><div> </ns0:comp-filter></div><div></ns0:comp-filter></div></div><div><br>
</div>
<div><br></div><div>But this ANDs the prop-filters. Is there no way to OR or is there another way to achieve what I'm trying to do here?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Atli.</div>
</font></span></div>
</blockquote></div><br></div>