-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxep-0169.xml
593 lines (535 loc) · 19.4 KB
/
xep-0169.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE xep SYSTEM 'xep.dtd' [
<!ENTITY % ents SYSTEM 'xep.ent'>
%ents;
]>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<xep>
<header>
<title>Twas The Night Before Christmas (Jabber Version)</title>
<abstract>The classic Christmas poem annotated with XMPP protocols.</abstract>
&LEGALNOTICE;
<number>0169</number>
<status>Active</status>
<type>Humorous</type>
<sig>Standards</sig>
<approver>Council</approver>
<dependencies>
<spec>XMPP IM</spec>
<spec>XEP-0045</spec>
<spec>XEP-0060</spec>
<spec>XEP-0080</spec>
<spec>XEP-0090</spec>
<spec>XEP-0107</spec>
<spec>XEP-0108</spec>
<spec>XEP-0112</spec>
<spec>XEP-0163</spec>
</dependencies>
<supersedes/>
<supersededby/>
<shortname>N/A</shortname>
&stpeter;
<revision>
<version>1.1.1</version>
<date>2021-03-04</date>
<initials>mw</initials>
<remark><p>Cross-document editorial adjustments for inclusive language.</p></remark>
</revision>
<revision>
<version>1.1</version>
<date>2009-12-24</date>
<initials>psa</initials>
<remark><p>Corrected several examples and clarified the architectural assumptions.</p></remark>
</revision>
<revision>
<version>1.0</version>
<date>2005-12-19</date>
<initials>psa</initials>
<remark><p>Happy Holidays!</p></remark>
</revision>
</header>
<section1 topic='Poem' anchor='poem'>
<p>'Twas the night before Christmas,</p>
<code><![CDATA[
<iq from='narrator@twas-the-night.lit/home'
id='time1'
to='twas-the-night.lit'
type='get'>
<time xmlns='urn:xmpp:time'/>
</iq>
<iq from='twas-the-night.lit'
id='time1'
to='narrator@twas-the-night.lit/home'
type='result'>
<time xmlns='urn:xmpp:time'>
<tzo>-05:00</tzo>
<utc>1807-12-25T04:58:35Z</utc>
</time>
</iq>
]]></code>
<p>When all through the house,</p>
<p>Not a creature was stirring, not even a mouse:</p>
<code><![CDATA[
<presence from='mouse@twas-the-night.lit/house'>
<show>xa</show>
<status>zzz</status>
</presence>
]]></code>
<p>The stockings were hung by the chimney with care,</p>
<p>In hopes that St. Nicholas soon would be there;</p>
<p>The children were nestled all snug in their beds,</p>
<code><![CDATA[
<message from='child@twas-the-night.lit'
to='narrator@twas-the-night.lit'
type='headline'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='http://jabber.org/protocol/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
<room>children's bedroom</room>
</geoloc>
</item>
</items>
</event>
</message>
]]></code>
<p>While visions of sugar-plums danced in their heads.</p>
<code><![CDATA[
<message from='child@twas-the-night.lit'
to='narrator@twas-the-night.lit'
type='headline'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='http://jabber.org/protocol/activity'>
<item id='current'>
<activity xmlns='http://jabber.org/protocol/activity'>
<inactive>
<sleeping/>
</inactive>
<text xml:lang='en'>dreaming of sugar-plums</text>
</activity>
</item>
</items>
</event>
</message>
]]></code>
<p>And Mama in her 'kerchief, and I in my cap,</p>
<p>Had just settled down for a long winter's nap.</p>
<code><![CDATA[
<message from='mama@twas-the-night.lit'
to='narrator@twas-the-night.lit'
type='headline'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='http://jabber.org/protocol/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc' xml:lang='en'>
<room>primary bedroom</room>
</geoloc>
</item>
</items>
</event>
</message>
]]></code>
<p>When out on the lawn there arose such a clatter,</p>
<p>I sprang from the bed to see what was the matter.</p>
<p>Away to the window I flew like a flash,</p>
<p>Tore open the shutters, and threw up the sash.</p>
<p>The moon on the breast of the new-fallen snow</p>
<p>Gave the lustre of mid-day to objects below,</p>
<p>When, what to my wondering eyes should appear,</p>
<p>But a miniature sleigh, and eight tiny rein-deer,</p>
<code><![CDATA[
<iq from='sleigh@northpole.lit/sleigh'
id='geo87361'
to='sleigh@northpole.lit'
type='set'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='http://jabber.org/protocol/geoloc'>
<item id='87361'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>50</alt>
</geoloc>
</item>
</publish>
</pubsub>
</iq>
]]></code>
<code><![CDATA[
<message from='sleigh@northpole.lit'
to='polecom@northpole.lit'
type='headline'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='http://jabber.org/protocol/geoloc'>
<item id='87361'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>50</alt>
</geoloc>
</item>
</items>
</event>
</message>
]]></code>
<p>With a little old driver, so lively and quick,</p>
<p>I knew in a moment it must be St. Nick.</p>
<p>More rapid than eagles his coursers they came,</p>
<p>And he whistled, and shouted, and called them by name;</p>
<code><![CDATA[
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>Now, Dasher!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>Now, Dancer!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>Now, Prancer and Vixen!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>On, Comet!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>On, Cupid!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>On, Donder and Blitzen!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>To the top of the porch!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>To the top of the wall!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>Now dash away!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>Dash away!</body>
</message>
<message from='reindeer@chat.northpole.lit/santa'
to='reindeer@chat.northpole.lit'
type='groupchat'>
<body>Dash away all!</body>
</message>
]]></code>
<p>As dry leaves that before the wild hurricane fly,</p>
<p>When they meet with an obstacle, mount to the sky,</p>
<p>So up to the house-top the coursers they flew,</p>
<p>With the sleigh full of toys, and St. Nicholas too.</p>
<code><![CDATA[
<iq type='set'
from='sleigh@northpole.lit/sleigh'
to='info.northpole.lit'
id='geo87361'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='sleigh/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>60</alt>
</geoloc>
</item>
</publish>
</pubsub>
</iq>
]]></code>
<code><![CDATA[
<message from='info.northpole.lit'
to='polecom@northpole.lit'
type='headline'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='sleigh/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>60</alt>
</geoloc>
</item>
</items>
</event>
</message>
]]></code>
<p>And then, in a twinkling, I heard on the roof</p>
<p>The prancing and pawing of each little hoof.</p>
<p>As I drew in my hand, and was turning around,</p>
<p>Down the chimney St. Nicholas came with a bound.</p>
<code><![CDATA[
<iq type='set'
from='saintnick@northpole.lit/pda'
to='info.northpole.lit'
id='geo117362'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='kringle/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>52</alt>
</geoloc>
</item>
</publish>
</pubsub>
</iq>
]]></code>
<code><![CDATA[
<message from='info.northpole.lit' to='polecom@northpole.lit'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='sleigh/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>52</alt>
</geoloc>
</item>
</items>
</event>
</message>
]]></code>
<code><![CDATA[
<presence from='saintnick@northpole.lit/pda' to='house@chat.twas-the-night.lit/santa'/>
]]></code>
<p>He was dressed all in fur, from his head to his foot,</p>
<p>And his clothes were all tarnished with ashes and soot;</p>
<p>A bundle of toys he had flung on his back,</p>
<p>And he looked like a peddler just opening his pack.</p>
<p>His eyes -- how they twinkled! his dimples how merry!</p>
<p>His cheeks were like roses, his nose like a cherry!</p>
<p>His droll little mouth was drawn up like a bow,</p>
<p>And the beard of his chin was as white as the snow;</p>
<p>The stump of a pipe he held tight in his teeth,</p>
<p>And the smoke it encircled his head like a wreath;</p>
<p>He had a broad face and a little round belly,</p>
<p>That shook, when he laughed, like a bowlful of jelly.</p>
<p>He was chubby and plump, a right jolly old elf,</p>
<p>And I laughed when I saw him in spite of myself;</p>
<code><![CDATA[
<message from='narrator@twas-the-night.lit'
to='mama@twas-the-night.lit'
type='headline>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='narrator/mood'>
<item id='current'>
<mood xmlns='http://jabber.org/protocol/mood'>
<nervous/>
</mood>
</item>
</items>
</event>
</message>
]]></code>
<p>A wink of his eye and a twist of his head</p>
<p>Soon gave me to know I had nothing to dread.</p>
<code><![CDATA[
<message from='narrator@twas-the-night.lit'
to='mama@twas-the-night.lit'
type='headline'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='narrator/mood'>
<item ='current'>
<mood xmlns='http://jabber.org/protocol/mood'>
<relieved/>
</mood>
</item>
</items>
</event>
</message>
]]></code>
<p>He spoke not a word, but went straight to his work,</p>
<code><![CDATA[
<iq type='set'
from='saintnick@northpole.lit/pda'
to='info.northpole.lit'
id='activity9412'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='kringle/activity'>
<item id='current'>
<activity xmlns='http://jabber.org/protocol/activity'>
<working/>
<text xml:lang='en'>delivering toys</text>
</activity>
</item>
</publish>
</pubsub>
</iq>
]]></code>
<code><![CDATA[
<message from='info.northpole.lit' to='polecom@northpole.lit'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='kringle/activity'>
<item id='current'>
<activity xmlns='http://jabber.org/protocol/activity'>
<working/>
<text xml:lang='en'>delivering toys</text>
</activity>
</item>
</items>
</event>
</message>
]]></code>
<p>And filled all the stockings; then turned with a jerk,</p>
<p>And laying his finger aside of his nose</p>
<p>And giving a nod, up the chimney he rose.</p>
<code><![CDATA[
<iq type='set'
from='saintnick@northpole.lit/pda'
to='info.northpole.lit'
id='geo117363'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='kringle/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>60</alt>
</geoloc>
</item>
</publish>
</pubsub>
</iq>
]]></code>
<code><![CDATA[
<message from='info.northpole.lit'
to='polecom@northpole.lit'
type='headline'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='kringle/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>60</alt>
</geoloc>
</item>
</items>
</event>
</message>
]]></code>
<p>He sprung to his sleigh, to his team gave a whistle,</p>
<p>And away they all flew, like the down of a thistle.</p>
<code><![CDATA[
<iq type='set'
from='sleigh@northpole.lit/sleigh'
to='info.northpole.lit'
id='geo87362'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='sleigh/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>100</alt>
</geoloc>
</item>
</publish>
</pubsub>
</iq>
]]></code>
<code><![CDATA[
<message from='info.northpole.lit' to='polecom@northpole.lit'>
<event xmlns='http://jabber.org/protocol/pubsub#event'>
<items node='sleigh/geoloc'>
<item id='current'>
<geoloc xmlns='http://jabber.org/protocol/geoloc'>
<lat>41.70</lat>
<lon>-73.92</lon>
<alt>100</alt>
</geoloc>
</item>
</items>
</event>
</message>
]]></code>
<p>But I heard him exclaim, ere he drove out of sight --</p>
<code><![CDATA[
<message from='house@chat.twas-the-night.lit/santa'
to='house@chat.twas-the-night.lit'
type='groupchat'>
<body>Happy Christmas to all, and to all a good night.</body>
</message>
]]></code>
<code><![CDATA[
<presence from='saintnick@northpole.lit/pda'
to='house@chat.twas-the-night.lit/santa'
type='unavailable'/>
]]></code>
</section1>
<section1 topic='References' anchor='refs'>
<p>The foregoing poem, informally known as <cite>'Twas the Night Before Christmas</cite> but formally entitled <cite>Account of a Visit from St. Nicholas</cite>, was authored by Major Henry Livingston Jr. in 1807 or 1808. <note>As noted at <<link url='http://rpo.library.utoronto.ca/poem/1312.html'>http://rpo.library.utoronto.ca/poem/1312.html</link>>, "In the year 2000, Don Foster, an English professor at Vassar College in Poughkeepsie, New York, used external and internal evidence to show that Clement Clarke Moore could not have been the author of this poem, but that it was probably the work of Livingston, and that Moore had written another, and almost forgotten, Christmas piece, <cite>Old Santeclaus</cite>. Foster's analysis of this deception appears in his <cite>Author Unknown: On the Trail of Anonymous</cite> (New York: Henry Holt, 2000): 221-75." See also <<link url='http://rpo.library.utoronto.ca/poet/204.html'>http://rpo.library.utoronto.ca/poet/204.html</link>> and <<link url='http://www.henrylivingston.com'>http://www.henrylivingston.com/</link>>.</note></p>
<p>This document makes reference to the following XMPP protocols:</p>
<ul>
<li>&rfc6121;</li>
<li>&xep0045;</li>
<li>&xep0060;</li>
<li>&xep0080;</li>
<li>&xep0090;</li>
<li>&xep0107;</li>
<li>&xep0108;</li>
<li>&xep0163;</li>
</ul>
<p>Note: For the sake of brevity, not all protocol exchanges are shown above. Refer to the appropriate specifications for detailed protocol descriptions.</p>
</section1>
<section1 topic='Architectural Assumptions' anchor='arch'>
<p>This document assumes the following architecture:</p>
<code><![CDATA[
+--- info.northpole.lit (pubsub service) *
| |
| | (pubsub nodes)
| |
+--------------------+ (s2s) +---------------+ | |-- kringle/activity
| twas-the-night.lit | ------- | northpole.lit |---| |-- kringle/geoloc
+--------------------+ +---------------+ | |-- sleigh/geoloc
| | | |
| (users) | | (users) +--- chat.northpole.lit (MUC service)
| | | |
|-- narrator | |-- saintnick | (occupants)
|-- mama | |-- sleigh |
|-- child | |-- polecom ** |-- dasher
|-- mouse | |-- dancer
| |-- prancer
chat.twas-the-night.lit (MUC service) |-- vixen
| |-- cupid
| (occupants) |-- donder
| |-- blitzen
|-- santa et al.
]]></code>
<p>In addition, we assume that the twas-the-night.lit server is running a virtual pubsub service for each account it hosts (in accordance with <cite>XEP-0163</cite>) and that the users "narrator", "mama", and "child" publish information to personal pubsub nodes related to mood (<cite>XEP-0107</cite>), activity (<cite>XEP-0108</cite>), and physical location (<cite>XEP-0112</cite>).</p>
<p>* Because millions of people track the movements and activities of Santa, northpole.lit runs a highly scalable, standalone pubsub service instead of PEP at Santa's bare JID.</p>
<p>** The U.S. Military divides its operations geographically among NORTHCOM, SOUTHCOM, EUCOM, and PACOM. Given the scale of operations implemented by Santa's workshop, it comes as no surprise that the command center at the North Pole is known as POLECOM. Naturally POLECOM subscribes to the pubsub feeds for Santa's geolocation and activity, as well as the sleigh's geolocation, just in case a search and rescue mission needs to be initiated.</p>
</section1>
<section1 topic='Internationalization Considerations' anchor='i18n'>
<p>The protagonist of this poem is variously called (in English) St. Nicholas, St. Nick, Santa Claus, Kris Kringle, and bears a striking resemblance to the Sinterklaas of Dutch legend. Use of the name "St. Nicholas" is not meant to disparage other names for this character in English or any other language.</p>
</section1>
<section1 topic='Security Considerations' anchor='security'>
<p>It is NOT RECOMMENDED for mere mortals to fly in reindeer-powered sleighs, to enter and exit houses through chimneys, or to perform other dangerous acts described herein.</p>
</section1>
<section1 topic='IANA Considerations' anchor='iana'>
<p>This document requires no interaction with &IANA;.</p>
</section1>
<section1 topic='XMPP Registrar Considerations' anchor='registrar'>
<p>This document requires no interaction with the ®ISTRAR;.</p>
</section1>
</xep>