Software /
code /
prosody-modules
Comparison
mod_export_skeletons/README.md @ 4818:d66162e850cd
mod_export_skeletons: Generate ids based on log2 of the original length
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Dec 2021 00:14:12 +0100 |
parent | 4817:e8e0cb97c480 |
child | 4819:b1882a40c246 |
comparison
equal
deleted
inserted
replaced
4817:e8e0cb97c480 | 4818:d66162e850cd |
---|---|
33 child tags sorted. | 33 child tags sorted. |
34 | 34 |
35 Top level attributes are given special treatment since they carry | 35 Top level attributes are given special treatment since they carry |
36 protocol semantics. Notably the `@to` and `@from` JIDs are replaced by | 36 protocol semantics. Notably the `@to` and `@from` JIDs are replaced by |
37 symbolic labels to convey what form (bare, full or host) they had. The | 37 symbolic labels to convey what form (bare, full or host) they had. The |
38 `@id` attribute is replaced with a string of the same length. | 38 `@id` attribute is replaced with a string with the length based on log2 |
39 of the original length. | |
39 | 40 |
40 ## Example | 41 ## Example |
41 | 42 |
42 ```xml | 43 ```xml |
43 <message from='full' id='xxxxxxxxxxxxxxxx' type='chat' to='bare'><body/><x xmlns='jabber:x:oob'><url/></x></message> | 44 <message from='full' id='xxxxxxxxxxxxxxxx' type='chat' to='bare'><body/><x xmlns='jabber:x:oob'><url/></x></message> |