diff --git a/xep-0328.xml b/xep-0328.xml index b6a827d9..6f454a83 100644 --- a/xep-0328.xml +++ b/xep-0328.xml @@ -9,8 +9,8 @@ JID Prep This specification defines a way for an XMPP client to request an XMPP server to prep and normalize a given JID. &LEGALNOTICE; - xxxx - ProtoXEP + 0328 + Experimental Standards Track Standards @@ -18,7 +18,7 @@ XMPP IM XEP-0030 - + NOT_YET_ASSIGNED @@ -27,6 +27,12 @@ lance@lance.im lance@lance.im + + 0.1 + 2013-05-28 + psa +

Initial published version approved by the XMPP Council.

+
0.0.2 2013-05-21 @@ -45,7 +51,7 @@

In some environments (in particular, browser based environments), a client does not have access to the various Unicode and internationalization libraries necessary to properly prep and normalize a JID. For those situations, this protocol defines a way for a client to ask a server to normalize a JID on its behalf.

-

If a server supports JID prep queries, it MUST specify the 'urn:xmpp:jidprep:tmp' feature in its service discovery information features as specified in &xep0030; and the Entity Capabilities profile specified in &xep0115;.

+

If a server supports JID prep queries, it MUST specify the 'urn:xmpp:jidprep:0' feature in its service discovery information features as specified in &xep0030; and the Entity Capabilities profile specified in &xep0115;.

... - + ... ]]> -

The JID prep service MAY be supported through the use of an external component (&xep0114;); in which case, the component MUST return an identity of "component/jidprep" in addition to the "urn:xmpp:jidprep:tmp" feature.

+

The JID prep service MAY be supported through the use of an external component (&xep0114;); in which case, the component MUST return an identity of "component/jidprep" in addition to the "urn:xmpp:jidprep:0" feature.

... - + ]]>
-

In order to request prepping for a JID, the client sends an &IQ; stanza of type "get" to the server, containing a <jid/> element qualified by the 'urn:xmpp:jidprep:tmp' namespace and whose XML character data is the JID in question:

+

In order to request prepping for a JID, the client sends an &IQ; stanza of type "get" to the server, containing a <jid/> element qualified by the 'urn:xmpp:jidprep:0' namespace and whose XML character data is the JID in question:

- ROMeo@montague.lit/orchard + ROMeo@montague.lit/orchard ]]> -

The server MUST return either an IQ-result or an IQ-error. When returning an IQ-result, the server sends an &IQ; staza of type='result' containing a <jid/> element qualifed by the 'urn:xmpp:jidprep:tmp' namespace and whose XML character data MUST be the prepped and normalized version of the requested JID:

+

The server MUST return either an IQ-result or an IQ-error. When returning an IQ-result, the server sends an &IQ; staza of type='result' containing a <jid/> element qualifed by the 'urn:xmpp:jidprep:0' namespace and whose XML character data MUST be the prepped and normalized version of the requested JID:

- romeo@montague.lit/orchard + romeo@montague.lit/orchard ]]>

If an IQ-error is returned, then it SHOULD specify an error condition of <jid-malformed/> if the given JID could not be processed to a normalized form:

@@ -101,7 +107,7 @@ to="juliet@capulet.lit/balcony" from="capulet.lit" id="prep1"> - romeo@@montague.lit/orchard + romeo@@montague.lit/orchard @@ -121,9 +127,9 @@
-

The ®ISTRAR; includes 'urn:xmpp:jidprep:tmp' in its registry of protocol namespaces (see &NAMESPACES;).

+

The ®ISTRAR; includes 'urn:xmpp:jidprep:0' in its registry of protocol namespaces (see &NAMESPACES;).

    -
  • urn:xmpp:jidprep:tmp
  • +
  • urn:xmpp:jidprep:0
@@ -141,7 +147,7 @@ A server component that offers a JID prepping and normalization service to constrained clients. - XEP-XXXX + XEP-0328 ]]> @@ -153,8 +159,8 @@