Appsawg | Z. Shelby |
Internet-Draft | Micro:bit Foundation |
Intended status: Informational | O. Bergmann |
Expires: August 26, 2017 | C. Bormann |
Universität Bremen TZI | |
February 22, 2017 |
The +exi Media Type Suffix
draft-shelby-exi-registration-02
Efficient XML Interchange (EXI) is an XML representation technique specified by the W3C to provide a time and space efficient encoding for XML documents. This document defines a new Structured Syntax Suffix “+exi” for use in a specific class of protocols, where “exi” content-type encoding or the generic “application/exi” media type are not applicable.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on August 26, 2017.
Copyright (c) 2017 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
Efficient XML Interchange (EXI) [W3C.REC-exi-20140211] is an XML representation technique specified by the W3C to provide a time and space efficient binary encoding alternative to the standard text XML representation. EXI is not a generic compression technique like gzip or deflate, but an encoding technique specifically for XML structured documents, which uses either learned or pre-informed schema information.
[W3C.REC-exi-20140211] defines a generic media type for documents encoded in EXI, “application/exi”; this does not provide a way to indicate more information about structure and semantics of the EXI-encoded XML. Also, [W3C.REC-exi-20140211] defines an HTTP content encoding, “exi”, that can be used to indicate EXI coding in combination with an existing XML media type.
This document defines a new Structured Syntax Suffix “+exi” for use in media types for a specific class of protocols, where the “exi” content-type encoding or the generic “application/exi” media type are not viable. In particular, the Constrained Application Protocol (CoAP) [RFC7252] combines the media type and its encoding in a single option value. Thus, a client would include an Accept option in a GET request to indicate its capability of processing, e.g., text/plain in UTF-8 encoding, or application/exi, while the actual media type and encoding of a transferred payload would be described by the Content-Format option. CoAP servers can provide a description of their hosted resources as specified in Section 7.2 of [RFC7252]. A description usually contains an attribute ct that lists the Content-Format codes the server offers for a respective resource.
Since EXI-encoded documents may or may not contain explicit information on the schema that is applicable to this document, the receiver of an EXI document would have to inspect its contents to decide if it can continue processing. The structure syntax suffix specified in this document can be used by a sender to provide explicit information about the media types and encodings it can process.
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119 [RFC2119].
The EXI standard already defines both an “exi” content-type encoding and an “application/exi” media type. This section discusses when it is appropriate to use the new “+exi” structured syntax suffix when registering a media type.
Appendix F.1 of [W3C.REC-exi-20140211] clearly describes when the exi content-type encoding should be used: “Protocols that can identify and negotiate the content coding of XML information independent of its media type, SHOULD use the content coding “exi” (case-insensitive) to convey the acceptance or actual use of EXI encoding for XML information.”
Thus when a protocol depends on the media type to identify that the payload is EXI, it can make use of the “application/exi” media type defined in Appendix F.2 of [W3C.REC-exi-20140211]. This works particularly well for applications using EXI in a generic way, and in particular in schema-less EXI streams, where protocol specific information such as the XML schema used is not needed to process the payload, or where the EXI stream contains the schemaId option to reference an applicable XML schema. In these cases it is RECOMMENDED to use either the “application/exi” media type or “exi” content-type encoding with an existing media type.
The “+exi” structure syntax suffix is appropriate for use in either of the following cases:
Both application areas address a very specific set of use cases where the media type “application/exi” or the content coding “exi” do not provide sufficient information for a receiver to decide if it is able to process the respective payload.
Security considerations are discussed in Section 4.
This document requests registration of the Structured Syntax Suffix “+exi” as follows, following the registration template from Section 4.2.8 of [RFC6838]
This draft is the result of discussions on the former Apps Area Working Group mailing list. Thanks to Carine Bournez and Guido Moritz for their helpful comments.
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. |
[RFC6838] | Freed, N., Klensin, J. and T. Hansen, "Media Type Specifications and Registration Procedures", BCP 13, RFC 6838, DOI 10.17487/RFC6838, January 2013. |
[W3C.REC-exi-20140211] | Schneider, J., Kamiya, T., Peintner, D. and R. Kyusakov, "Efficient XML Interchange (EXI) Format 1.0 (Second Edition)", World Wide Web Consortium Recommendation REC-exi-20140211, February 2014. |
[RFC5988] | Nottingham, M., "Web Linking", RFC 5988, DOI 10.17487/RFC5988, October 2010. |
[RFC7252] | Shelby, Z., Hartke, K. and C. Bormann, "The Constrained Application Protocol (CoAP)", RFC 7252, DOI 10.17487/RFC7252, June 2014. |
[RFC7303] | Thompson, H. and C. Lilley, "XML Media Types", RFC 7303, DOI 10.17487/RFC7303, July 2014. |