Skip to content

Commit 95068ef

Browse files
committed
Use URI namespace within our domain
1 parent 230d5e2 commit 95068ef

9 files changed

+12
-12
lines changed

content.mkd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Clients can use WebDAV `PROPFIND` to retrieve these properties. Example:
143143
~~~
144144
PROPFIND https://example.com/webdav/collection/
145145
<?xml version="1.0" encoding="utf-8" ?>
146-
<propfind xmlns="DAV:" xmlns:P="DAV:Push">
146+
<propfind xmlns="DAV:" xmlns:P="https://bitfire.at/webdav-push">
147147
<prop>
148148
<P:transports/>
149149
<P:topic/>
@@ -168,7 +168,7 @@ The comment shows how support for some other (not yet defined) transport could b
168168

169169
## Subscription Registration
170170

171-
To subscribe to a collection, the client sends a `POST` request with `Content-Type: application/xml` to the collection it wants to subscribe. The root XML element of the XML body is `push-register` in the WebDAV-Push namespace (`DAV:Push`) and can be used to distinguish between a WebDAV-Push and other requests.
171+
To subscribe to a collection, the client sends a `POST` request with `Content-Type: application/xml` to the collection it wants to subscribe. The root XML element of the XML body is `push-register` in the WebDAV-Push namespace (`https://bitfire.at/webdav-push`) and can be used to distinguish between a WebDAV-Push and other requests.
172172

173173
The `push-register` element contains exactly one `subscription` element, which contains all information the server needs to send a push message.
174174

@@ -452,7 +452,7 @@ The server uses these data to encrypt the payload and send it to the push servic
452452

453453
# XML Schema
454454

455-
When XML element names are used without namespace in this document, they are in the WebDAV-Push namespace (`DAV:Push`). All XML elements defined by this document reside in this namespace.
455+
When XML element names are used without namespace in this document, they are in the WebDAV-Push namespace (`https://bitfire.at/webdav-push`). All XML elements defined by this document reside in this namespace.
456456

457457
To reference element names in another namespace, the `{ns}element` syntax is used. For instance, `{DAV:}prop` means the `prop` XML element in the `DAV:` namespace.
458458

xml/sample-propfind-multistatus-with-vapid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<multistatus xmlns="DAV:" xmlns:P="DAV:Push">
1+
<multistatus xmlns="DAV:" xmlns:P="https://bitfire.at/webdav-push">
22
<response>
33
<href>/webdav/collection/</href>
44
<prop>

xml/sample-propfind-multistatus.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<multistatus xmlns="DAV:" xmlns:P="DAV:Push">
1+
<multistatus xmlns="DAV:" xmlns:P="https://bitfire.at/webdav-push">
22
<response>
33
<href>/webdav/collection/</href>
44
<prop>
@@ -11,7 +11,7 @@
1111
</P:some-other-transport>
1212
-->
1313
</P:transports>
14-
<P:topic xmlns="DAV:Push">O7M1nQ7cKkKTKsoS_j6Z3w</P:topic>
14+
<P:topic xmlns="https://bitfire.at/webdav-push">O7M1nQ7cKkKTKsoS_j6Z3w</P:topic>
1515
</prop>
1616
</response>
1717
</multistatus>

xml/sample-push-message1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<P:push-message xmlns:D="DAV:" xmlns:P="DAV:Push">
2+
<P:push-message xmlns:D="DAV:" xmlns:P="https://bitfire.at/webdav-push">
33
<D:propstat>
44
<D:prop>
55
<P:topic>O7M1nQ7cKkKTKsoS_j6Z3w</P:topic>

xml/sample-push-message2.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<P:push-message xmlns:P="DAV:Push">
2+
<P:push-message xmlns:P="https://bitfire.at/webdav-push">
33
<D:propstat xmlns:D="DAV:">
44
<D:status>404 Not Found</D:status>
55
<D:prop>

xml/sample-registration-with-encryption.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2-
<push-register xmlns="DAV:Push">
2+
<push-register xmlns="https://bitfire.at/webdav-push">
33
<subscription>
44
<web-push-subscription>
55
<push-resource>https://up.example.net/yohd4yai5Phiz1wi</push-resource>

xml/sample-registration.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<push-register xmlns="DAV:Push">
1+
<push-register xmlns="https://bitfire.at/webdav-push">
22
<subscription>
33
<web-push-subscription>
44
<push-resource>https://up.example.net/yohd4yai5Phiz1wi</push-resource>

xml/sample-web-push-subscription.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<web-push-subscription xmlns="DAV:Push">
1+
<web-push-subscription xmlns="https://bitfire.at/webdav-push">
22
<push-resource>https://push.example.net/push/JzLQ3raZJfFBR0aqvOMsLrt54w4rJUsV</push-resource>
33
</web-push-subscription>

xml/webdav-push.rng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="DAV:Push">
1+
<grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="https://bitfire.at/webdav-push">
22

33
<!-- New WebDAV Collection Properties -->
44

0 commit comments

Comments
 (0)