Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better XML namespace #42

Open
rfc2822 opened this issue Sep 29, 2024 · 2 comments
Open

Better XML namespace #42

rfc2822 opened this issue Sep 29, 2024 · 2 comments

Comments

@rfc2822
Copy link
Member

rfc2822 commented Sep 29, 2024

Choose appropriate XML NS

Anyone knows what would be appropriate?

@ArnyminerZ
Copy link
Member

Well, technically it can be whatever unique URI we choose. If we are ever going to have a hostname for push, I think we could use it. Otherwise, we can directly use the repo URL, or even host some kind of schema on Github pages or similar and use it, even though it's not necessary by any means.

If we need one right now, I'd go for the repo URL.

@rfc2822
Copy link
Member Author

rfc2822 commented Sep 30, 2024

Hm a good idea. https://www.rfc-editor.org/rfc/rfc3470#section-4.9 says:

Protocol definitions should use existing XML namespaces where appropriate.

By the way, can we just put it into DAV:, as for instance RFC 6578 does? But it feels a bit wrong for me …

When a new namespace is needed, the "namespace name" is a URI that is used to identify the namespace; it's also useful for that URI to point to a description of the namespace. Typically (and recommended practice in W3C) is to assign namespace names using persistent http URIs.

The repo URL would be unique and also point to the description (because the repo contains or links to the spec).

The disadvantage is that the fate of the namespace is then bound to the bitfireAT Github organization.

RFC 4918 says:

Creation of identifiers in the "DAV:" namespace is controlled by the IETF. Note that defining new URI schemes for XML namespaces is now discouraged. "DAV:" was defined before standard best practices emerged.

So I think DAV:Push is a bad choice. The question is what the best practices are :)

https://www.w3.org/TR/xml-names11/ talks about IRIs and URNs.


What other specs use:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants