diff options
-rw-r--r-- | lib/webcals/sax/dav_response.js | 5 | ||||
-rw-r--r-- | samples/xml/req_find_events_url.xml | 17 | ||||
-rw-r--r-- | samples/xml/req_find_principal.xml | 12 |
3 files changed, 33 insertions, 1 deletions
diff --git a/lib/webcals/sax/dav_response.js b/lib/webcals/sax/dav_response.js index 7cf78af..638951e 100644 --- a/lib/webcals/sax/dav_response.js +++ b/lib/webcals/sax/dav_response.js @@ -107,7 +107,10 @@ 'DAV:/href': TextHandler, 'DAV:/status': HttpStatusHandler, 'DAV:/resourcetype': ArrayHandler, - 'DAV:/principal-URL': HrefHandler + 'DAV:/principal-URL': HrefHandler, + 'DAV:/value': TextHandler, + 'urn:ietf:params:xml:ns:caldav/calendar-home-set': HrefHandler, + 'urn:ietf:params:xml:ns:caldav/calendar-user-address-set': HrefHandler }, onopentag: function(data, handler) { diff --git a/samples/xml/req_find_events_url.xml b/samples/xml/req_find_events_url.xml new file mode 100644 index 0000000..6485644 --- /dev/null +++ b/samples/xml/req_find_events_url.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<A:propfind xmlns:A="DAV:"> + <A:prop> + <F:calendar-color xmlns:F="http://apple.com/ns/ical/" /> + <D:calendar-description xmlns:D="urn:ietf:params:xml:ns:caldav" /> + <D:calendar-free-busy-set xmlns:D="urn:ietf:params:xml:ns:caldav" /> + <F:calendar-order xmlns:F="http://apple.com/ns/ical/" /> + <D:calendar-timezone xmlns:D="urn:ietf:params:xml:ns:caldav" /> + <A:displayname /> + <B:getctag xmlns:B="http://calendarserver.org/ns/" /> + <A:owner /> + <A:quota-available-bytes /> + <A:quota-used-bytes /> + <A:resourcetype /> + <D:supported-calendar-component-set xmlns:D="urn:ietf:params:xml:ns:caldav" /> + </A:prop> +</A:propfind> diff --git a/samples/xml/req_find_principal.xml b/samples/xml/req_find_principal.xml new file mode 100644 index 0000000..b34f46a --- /dev/null +++ b/samples/xml/req_find_principal.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<A:propfind xmlns:A="DAV:"> + <A:prop> + <A:principal-URL /> + <A:resourcetype /> + <B:allowed-calendar-component-set xmlns:B="http://calendarserver.org/ns/" /> + <D:calendar-home-set xmlns:D="urn:ietf:params:xml:ns:caldav" /> + <D:calendar-user-address-set xmlns:D="urn:ietf:params:xml:ns:caldav" /> + <A:current-user-principal /> + <A:displayname /> + </A:prop> +</A:propfind> |