Abstract: | The classic Christmas poem annotated with Jabber/XMPP protocols. |
Author: | Peter Saint-Andre |
Copyright: | © 1999 - 2009 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Active |
Type: | Humorous |
Version: | 1.0 |
Last Updated: | 2005-12-19 |
NOTICE: This document is Humorous. It MAY provide amusement but SHOULD NOT be taken seriously.
1. Poem
2. References
3. Architectural Assumptions
4. Internationalization Considerations
5. Security Considerations
6. IANA Considerations
7. XMPP Registrar Considerations
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
'Twas the night before Christmas,
<iq type='get' from='narrator@twas-the-night.lit/home' to='twas-the-night.lit' id='time1'> <query xmlns='jabber:iq:time'/> </iq> <iq type='result' from='twas-the-night.lit' to='narrator@twas-the-night.lit/home' id='time1'> <query xmlns='jabber:iq:time'> <utc>18071224T22:58:35</utc> <tz>EST</tz> </query> </iq>
When all through the house,
Not a creature was stirring, not even a mouse:
<presence from='mouse@twas-the-night.lit/home'> <show>xa</show> <status>zzz</status> </presence>
The stockings were hung by the chimney with care,
In hopes that St. Nicholas soon would be there;
The children were nestled all snug in their beds,
<message from='child@twas-the-night.lit' to='narrator@twas-the-night.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='http://jabber.org/protocol/physloc'> <item> <physloc xmlns='http://jabber.org/protocol/physloc' xml:lang='en'> <room>children's bedroom</room> </physloc> </item> </items> </event> </message>
While visions of sugar-plums danced in their heads.
<message from='child@twas-the-night.lit' to='narrator@twas-the-night.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='http://jabber.org/protocol/activity'> <item> <activity xmlns='http://jabber.org/protocol/activity'> <inactive> <sleeping/> </inactive> <text xml:lang='en'>dreaming of sugar-plums</text> </activity> </item> </items> </event> </message>
And Mama in her 'kerchief, and I in my cap,
Had just settled down for a long winter's nap.
<message from='mama@twas-the-night.lit' to='narrator@twas-the-night.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='http://jabber.org/protocol/physloc'> <item> <physloc xmlns='http://jabber.org/protocol/physloc' xml:lang='en'> <room>master bedroom</room> </physloc> </item> </items> </event> </message>
When out on the lawn there arose such a clatter,
I sprang from the bed to see what was the matter.
Away to the window I flew like a flash,
Tore open the shutters, and threw up the sash.
The moon on the breast of the new-fallen snow
Gave the lustre of mid-day to objects below,
When, what to my wondering eyes should appear,
But a miniature sleigh, and eight tiny rein-deer,
<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='87361'> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>50</alt> </geoloc> </item> </publish> </pubsub> </iq>
<message from='info.northpole.lit' to='POLECOM@northpole.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='sleigh/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>
With a little old driver, so lively and quick,
I knew in a moment it must be St. Nick.
More rapid than eagles his coursers they came,
And he whistled, and shouted, and called them by name;
<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>
As dry leaves that before the wild hurricane fly,
When they meet with an obstacle, mount to the sky,
So up to the house-top the coursers they flew,
With the sleigh full of toys, and St. Nicholas too.
<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> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>60</alt> </geoloc> </item> </publish> </pubsub> </iq>
<message from='info.northpole.lit' to='POLECOM@northpole.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='sleigh/geoloc'> <item> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>60</alt> </geoloc> </item> </items> </event> </message>
And then, in a twinkling, I heard on the roof
The prancing and pawing of each little hoof.
As I drew in my hand, and was turning around,
Down the chimney St. Nicholas came with a bound.
<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> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>52</alt> </geoloc> </item> </publish> </pubsub> </iq>
<message from='info.northpole.lit' to='POLECOM@northpole.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='sleigh/geoloc'> <item> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>52</alt> </geoloc> </item> </items> </event> </message>
<presence from='saintnick@northpole.lit/pda' to='house@chat.twas-the-night.lit/santa'/>
He was dressed all in fur, from his head to his foot,
And his clothes were all tarnished with ashes and soot;
A bundle of toys he had flung on his back,
And he looked like a peddler just opening his pack.
His eyes -- how they twinkled! his dimples how merry!
His cheeks were like roses, his nose like a cherry!
His droll little mouth was drawn up like a bow,
And the beard of his chin was as white as the snow;
The stump of a pipe he held tight in his teeth,
And the smoke it encircled his head like a wreath;
He had a broad face and a little round belly,
That shook, when he laughed, like a bowlful of jelly.
He was chubby and plump, a right jolly old elf,
And I laughed when I saw him in spite of myself;
<message from='narrator@twas-the-night.lit' to='mama@twas-the-night.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <publish node='narrator/mood'> <items> <mood xmlns='http://jabber.org/protocol/mood'> <nervous/> </mood> </item> </items> </event> </message>
A wink of his eye and a twist of his head
Soon gave me to know I had nothing to dread.
<message from='narrator@twas-the-night.lit' to='mama@twas-the-night.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <publish node='narrator/mood'> <items> <mood xmlns='http://jabber.org/protocol/mood'> <relieved/> </mood> </item> </items> </event> </message>
He spoke not a word, but went straight to his work,
<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> <activity xmlns='http://jabber.org/protocol/activity'> <working/> </activity> </item> </publish> </pubsub> </iq>
<message from='info.northpole.lit' to='POLECOM@northpole.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='sleigh/geoloc'> <item> <activity xmlns='http://jabber.org/protocol/activity'> <working/> </activity> </item> </items> </event> </message>
And filled all the stockings; then turned with a jerk,
And laying his finger aside of his nose
And giving a nod, up the chimney he rose.
<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='a1s2d3f4g5h6bjeh936'> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>60</alt> </geoloc> </item> </publish> </pubsub> </iq>
<message from='info.northpole.lit' to='POLECOM@northpole.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='sleigh/geoloc'> <item id='a1s2d3f4g5h6bjeh936'> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>60</alt> </geoloc> </item> </items> </event> </message>
He sprung to his sleigh, to his team gave a whistle,
And away they all flew, like the down of a thistle.
<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='a1s2d3f4g5h6bjeh936'> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>100</alt> </geoloc> </item> </publish> </pubsub> </iq>
<message from='info.northpole.lit' to='POLECOM@northpole.lit'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='sleigh/geoloc'> <item id='a1s2d3f4g5h6bjeh936'> <geoloc xmlns='http://jabber.org/protocol/geoloc'> <lat>41.70</lat> <lon>-73.92</lon> <alt>100</alt> </geoloc> </item> </items> </event> </message>
But I heard him exclaim, ere he drove out of sight --
<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>
<presence from='saintnick@northpole.lit/pda' to='house@chat.twas-the-night.lit/santa' type='unavailable'/>
The foregoing poem, informally known as 'Twas the Night Before Christmas but formally entitled Account of a Visit from St. Nicholas, was authored by Major Henry Livingston Jr. in 1807 or 1808. [1]
This document makes reference to the following Jabber/XMPP protocols:
Note: For the sake of brevity, not all protocol exchanges are shown above. Refer to the appropriate specifications for detailed protocol descriptions.
This document assumes the following architecture:
+--- 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.
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 XEP-0163) and that the users "narrator", "mama", and "child" publish information to personal pubsub nodes related to mood (XEP-0107), activity (XEP-0108), and physical location (XEP-0112).
* 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.
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.
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.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA) [11].
This document requires no interaction with the XMPP Registrar [12].
Series: XEP
Number: 0169
Publisher: XMPP Standards Foundation
Status:
Active
Type:
Humorous
Version: 1.0
Last Updated: 2005-12-19
Approving Body: XMPP Council
Dependencies: XMPP IM, XEP-0045, XEP-0060, XEP-0080, XEP-0090, XEP-0107, XEP-0108, XEP-0112, XEP-0163
Supersedes: None
Superseded By: None
Short Name: N/A
Source Control:
HTML
RSS
Email:
stpeter@jabber.org
JabberID:
stpeter@jabber.org
URI:
https://stpeter.im/
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.
Errata can be sent to <editor@xmpp.org>.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. As noted at <http://rpo.library.utoronto.ca/poem/1312.html>, "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, Old Santeclaus. Foster's analysis of this deception appears in his Author Unknown: On the Trail of Anonymous (New York: Henry Holt, 2000): 221-75." See also <http://rpo.library.utoronto.ca/poet/204.html> and <http://www.henrylivingston.com/>.
2. RFC 3921: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence <http://tools.ietf.org/html/rfc3921>.
3. XEP-0045: Multi-User Chat <http://xmpp.org/extensions/xep-0045.html>.
4. XEP-0060: Publish-Subscribe <http://xmpp.org/extensions/xep-0060.html>.
5. XEP-0080: User Geolocation <http://xmpp.org/extensions/xep-0080.html>.
6. XEP-0090: Legacy Entity Time <http://xmpp.org/extensions/xep-0090.html>.
7. XEP-0107: User Mood <http://xmpp.org/extensions/xep-0107.html>.
8. XEP-0108: User Activity <http://xmpp.org/extensions/xep-0108.html>.
9. XEP-0112: User Physical Location <http://xmpp.org/extensions/xep-0112.html>.
10. XEP-0163: Personal Eventing Protocol <http://xmpp.org/extensions/xep-0163.html>.
11. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>.
12. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <http://xmpp.org/registrar/>.
Happy Holidays!
(psa)END