File
Blob: src/worker/xml/namespaces.ts
| 1 | export const DAV_NS = "DAV:"; |
| 2 | export const CALDAV_NS = "urn:ietf:params:xml:ns:caldav"; |
| 3 | export const CARDDAV_NS = "urn:ietf:params:xml:ns:carddav"; |
| 4 | export const CALENDAR_SERVER_NS = "http://calendarserver.org/ns/"; |
| 5 | |
| 6 | export interface QName { |
| 7 | nsUri: string; |
| 8 | localName: string; |
| 9 | } |
| 10 | |
| 11 | export function qname(nsUri: string, localName: string): QName { |
| 12 | return { nsUri, localName }; |
| 13 | } |
| 14 | |
| 15 | export function sameQName(a: QName, b: QName): boolean { |
| 16 | return a.nsUri === b.nsUri && a.localName === b.localName; |
| 17 | } |