<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type='text/xsl' href='xep.xsl'?>
<xep xmlns="">
<header>
  <title>XMPP as Interpretive Dance</title>
  <abstract>This document defines a method for representing XMPP communications through the medium of interpretive dance. By mapping core protocol elements to specific physical movements, it allows expressive, low-bandwidth, and audience-friendly implementations of XMPP suitable for artistic performances, theatrical demonstrations, and deeply confusing hackathons.</abstract>
  
<legal>
<copyright>This XMPP Extension Protocol is copyright © 1999 – 2024 by the <link url="https://xmpp.org/">XMPP Standards Foundation</link> (XSF).</copyright>
<permissions>Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.</permissions>
<warranty>## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##</warranty>
<liability>In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.</liability>
<conformance>This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at &lt;<link url="https://xmpp.org/about/xsf/ipr-policy">https://xmpp.org/about/xsf/ipr-policy</link>&gt; or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).</conformance>
</legal>
  <number>0512</number>
  <status>Active</status>
  <type>Humorous</type>
  <sig>None</sig>
  <approver>Editor</approver>
  <dependencies>
    <spec>XMPP Core</spec>
    <spec>XMPP IM</spec>
  </dependencies>
  <supersedes/>
  <supersededby/>
  <shortname>dance</shortname>
  
  <author>
    <firstname>Guus</firstname>
    <surname>der Kinderen</surname>
    <email>guus.der.kinderen@gmail.com</email>
    <jid>guus.der.kinderen@igniterealtime.org</jid>
  </author>

  <revision>
    <version>5.6.7.8</version>
    <date>2026-04-01</date>
    <initials>gdk</initials>
    <remark>Initial published version.</remark>
  </revision>
</header>
<section1 topic="Introduction" anchor="intro">
  <p>Extensible Messaging and Presence Protocol (XMPP) is traditionally implemented in code, using XML stanzas transmitted over TCP/IP. However, such implementations lack <em>artistic flair</em> and are poorly suited for environments with no network connectivity but ample interpretive energy.</p>
  <p>This XEP defines how to implement XMPP entirely through human movement. By encoding message, presence, and iq stanzas into gestures, jumps, and rhythmic flourishes, XMPP can finally achieve its destiny as both a communication protocol and a performative art form.</p>
</section1>
<section1 topic="Requirements" anchor="reqs">
  <p>An interpretive XMPP implementation MUST include:</p>
  <ul>
    <li>At least two dancers (a <em>client</em> and a <em>server</em>).</li>
    <li>A dance floor of sufficient size to represent the stanza queue.</li>
    <li>Background music approximating the rhythm of XML parsing (e.g., in 4/4 time).</li>
    <li>Optional: audience members to act as routers, federation gateways, or emotionally confused observers.</li>
  </ul>
  <p><strong>This document expires when all participants are too exhausted to continue.</strong></p>
</section1>
<section1 topic="Basic Architecture" anchor="architecture">
  <p>Each XMPP entity is represented by a dancer. Stanzas are represented as dance motifs. Transmission occurs when a dancer performs a motif directed toward another dancer.</p>
  <section2 topic="Message Stanzas" anchor="stanza-message">
    <ul>
      <li><tt>&lt;message type='chat'&gt;</tt> - A gentle twirl followed by direct eye contact.</li>
      <li><tt>&lt;message type='groupchat'&gt;</tt> - The dancer spins outward, gesturing inclusively toward all other dancers.</li>
      <li><tt>&lt;message type='error'&gt;</tt> - Collapse to the floor dramatically.</li>
      <li><tt>&lt;message type='headline'&gt;</tt> - A short, declarative arm thrust followed by stillness.</li>
    </ul>
  </section2>
  <section2 topic="Presence Stanzas" anchor="stanza-presence">
    <ul>
      <li><tt>&lt;presence/&gt;</tt> - A calm, open posture, hands at sides.</li>
      <li><tt>&lt;show&gt;away&lt;/show&gt;</tt> - Slow backward steps.</li>
      <li><tt>&lt;show&gt;dnd&lt;/show&gt;</tt> - Crossed arms with stern gaze.</li>
      <li><tt>&lt;show&gt;xa&lt;/show&gt;</tt> - Exit the dance floor entirely.</li>
      <li><tt>&lt;status&gt;</tt> - text may be mouthed silently or whispered to nearby participants.</li>
    </ul>
  </section2>
  <section2 topic="IQ Stanzas" anchor="stanza-iq">
    <p>IQ ("Inquisitive Questioning") exchanges are structured duets:</p>
    <ul>
      <li>The <em>requesting</em> dancer performs a questioning pirouette.</li>
      <li>The <em>responding</em> dancer MUST reply with a confirming nod (type='result') or a sharp refusal gesture (type='error').</li>
    </ul>
  </section2>
  <section2 topic="Example Session" anchor="example">
    <ol>
      <li>Client dancer performs a graceful <em>connect</em> leap.</li>
      <li>Server dancer bows, acknowledging the stream start.</li>
      <li>Client sends <tt>&lt;auth/&gt;</tt> by extending both hands in supplication.</li>
      <li>Server replies with <tt>&lt;success/&gt;</tt> by raising one arm triumphantly.</li>
      <li>Both dancers proceed into a spontaneous <tt>&lt;message/&gt;</tt> exchange sequence until network fatigue sets in.</li>
    </ol>
    <p>Note: The dance steps illustrated in the example session are non-normative and provided for demonstrative purposes only. Implementers MUST NOT assume that pirouettes, leaps, or interpretive hand-flutters described herein correspond to any formally defined XMPP stanzas, nor that they are executable by untrained engineers. The XSF recognizes that different implementations MAY employ alternative gestures, including but not limited to jazz hands, body rolls, or small interpretive shrugs. Such variations are considered interoperable provided all participants agree on tempo and dramatic intent.</p>
  </section2>
</section1>
<section1 topic="Transport" anchor="transport">
  <p>All communication occurs via line-of-sight. Dancers MUST NOT rely on TCP/IP, though rhythmic clapping MAY be used as an unreliable transport layer for synchronization.</p>
</section1>
<section1 topic="Internationalization" anchor="i18n">
  <p>Gestures SHOULD be culturally sensitive. For example, <tt>&lt;presence type='subscribe'/&gt;</tt> should not involve invasive proximity in cultures where personal space is highly valued.</p>
</section1>
<section1 topic="Security Considerations" anchor="security">
  <p>End-to-end encryption MAY be achieved by performing in total darkness.</p>
  <p>TLS handshakes can be mimed by elaborate finger-interlocking rituals.</p>
  <p>SASL negotiation involves mutual nodding until both dancers feel emotionally authenticated.</p>
</section1>
<section1 topic="IANA Considerations">
  <p>This document requires no interaction with the <span class="ref"><link url="http://www.iana.org/">Internet Assigned Numbers Authority (IANA)</link></span> <note>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 &lt;<link url="http://www.iana.org/">http://www.iana.org/</link>&gt;.</note>. Attempting to assign a formal IANA registry entry to gestures, pirouettes, or dramatic pauses would likely result in specification drift, spontaneous applause, or outright audience revolt. IANA involvement is therefor unnecessary, and frankly, unsafe.</p>
</section1>
<section1 topic="XMPP Registrar Considerations" anchor="registrar">
  <section2 topic="Protocol Namespaces" anchor="registrar-ns">
    <p>Upon advancement of this document to a status of Draft, the <span class="ref"><link url="https://xmpp.org/registrar/">XMPP Registrar</link></span> <note>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 &lt;<link url="https://xmpp.org/registrar/">https://xmpp.org/registrar/</link>&gt;.</note> includes the following namespace in its registry of protocol namespaces (see &lt;<link url="https://xmpp.org/registrar/namespaces.html">https://xmpp.org/registrar/namespaces.html</link>&gt;):</p>
    <ul>
      <li>urn:xmpp:dance:0</li>
    </ul>
  </section2>
  <section2 topic="Service Discovery Identities" anchor="registrar-identities">
    <p>Upon advancement of this document to a status of Draft, the <span class="ref"><link url="https://xmpp.org/registrar/">XMPP Registrar</link></span> <note>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 &lt;<link url="https://xmpp.org/registrar/">https://xmpp.org/registrar/</link>&gt;.</note> shall add a category of 'dance' to its registry of service discovery identities, with one associated types: 'interpretive', described as "Entity capable of sending/receiving XMPP stanzas via physical movement rather than XML serialization."</p>
  </section2>
</section1>
<section1 topic="Acknowledgements" anchor="ack">
  <p>The author would like to thank the XMPP Standards Foundation for maintaining a sense of humor, and every dancer who has ever debugged XML with their body.</p>
</section1>
<section1 topic="XML Schemas" anchor="schemas">
  <code><![CDATA[
<?xml version='1.0' encoding='UTF-8'?>
<!--
    XEP-XXXX: XMPP as Interpretive Dance
    XML Schema Definition (non-normative, rhythmically flexible)
-->

  <!-- Root element for an interpretive stanza -->
  <xs:element name='performance'>
    <xs:complexType>
      <xs:sequence>
        <xs:element ref='dancer' maxOccurs='unbounded'/>
      </xs:sequence>
      <xs:attribute name='tempo' type='xs:string' default='moderato'/>
      <xs:attribute name='time-signature' type='xs:string' default='4/4'/>
    </xs:complexType>
  </xs:element>

  <!-- Definition of a dancer -->
  <xs:element name='dancer'>
    <xs:complexType>
      <xs:sequence>
        <xs:element name='move' type='movementType' maxOccurs='unbounded'/>
      </xs:sequence>
      <xs:attribute name='jid' type='xs:string' use='required'/>
      <xs:attribute name='role' type='xs:string' default='client'/>
      <xs:attribute name='attitude' type='xs:string' default='expressive'/>
    </xs:complexType>
  </xs:element>

  <!-- Movement primitives -->
  <xs:simpleType name='movementType'>
    <xs:restriction base='xs:string'>
      <xs:enumeration value='pirouette'/>
      <xs:enumeration value='leap'/>
      <xs:enumeration value='gesture'/>
      <xs:enumeration value='collapse'/>
      <xs:enumeration value='nod'/>
      <xs:enumeration value='twirl'/>
      <xs:enumeration value='dramatic-pause'/>
    </xs:restriction>
  </xs:simpleType>

  <!-- Optional error stanza for failed synchronization -->
  <xs:element name='misstep'>
    <xs:complexType>
      <xs:attribute name='type' type='xs:string' default='minor'/>
      <xs:attribute name='severity' type='xs:integer' default='1'/>
      <xs:attribute name='description' type='xs:string'/>
    </xs:complexType>
  </xs:element>

</xs:schema>  
]]></code>
</section1>
  
</xep>
