Network Working Group E. Levinson
Request for Comments: 1874 Accurate Information Systems, Inc.
Category: Experimental December 1995
SGML Media Types
1. Introduction
A need exists for the transfer the elements of documents constructed using the Standard Generalized Markup Language (SGML) [ISO-8879]. While the specific details of such transfers are being considered general agreement exists on the need to register basic media types for the SGML entities not covered by existing types.
2. The SGML Media-Types
There are two media-types for SGML parsable entities, Text/SGML and Application/SGML. Both have the same optional parameters. Text/SGML provides a fallback to Text/Plain for those without SGML capability. Senders should base the choice between text and application media- types on the entity's content. Text is suggested for entities that would be meaningful to a human being without SGML processing. Application/SGML is recommended for all others.
Levinson Experimental [Page 1]
RFC 1874 SGML Media Types December 1995 2.1. Text/SGML MIME type name: Text MIME subtype name: SGMLRequired parameters: none Optional parameters: charset, SGML-bctf, SGML-boot Encoding considerations: may be encoded Security considerations: see section 4 below Published specification: ISO 8879:1986 Person and email address to contact for further information:
2.2. Application/SGML
MIME type name: Application
MIME subtype name: SGML
Required parameters: none Optional parameters: SGML-bctf, SGML-boot Encoding considerations: may be encoded Security considerations: see section 4 below Published specification: ISO-8879 Person and email address to contact for further information:
Levinson Experimental [Page 2]
RFC 1874 SGML Media Types December 1995 2.3. SGML Sub-type ParametersThe parameters for the Text/ and Application/SGML subtypes are defined below.
3. Security Considerations
SGML entities contain information to be parsed and processed by the recipient's SGML system. Those entities may contain and such systems may permit explicit system level commands to be execute while processing the data. To the extent that an SGML system will execute arbitrary command strings recipients of SGML entities may be at risk. Parsable SGML entities may also contain explicit processing instructions for a presentation or composition system; use of such instructions present concerns similar to those of Application/PostScript.
Levinson Experimental [Page 3]
RFC 1874 SGML Media Types December 1995 4. References[ISO-8879]
5. Author's Address
Ed Levinson Accurate Information Systems, Inc. 2 Industrial Way Eatontown, NJ 07724
Levinson Experimental [Page 4]
RFC 1874 SGML Media Types December 1995
ISO-10744 BCTF Values and Boot Attribute
A.1. Bit Combination Transformation Format (BCTF) Values
The following list of Bit Combination Transformation Format (BCTF) values is provided as a convenience. The authoritative source is [ISO-10744].
Levinson Experimental [Page 5]
RFC 1874 SGML Media Types December 1995
sjis Each bit combination is treated as a pair of octets,
A.2. The Boot Attribute
The body part specified by the SGML-boot parameter contains a sequence of triplets of positive integers separated by white space. The triplets correspond to the described character set portion [IS0- 8879, 13.1.1.2] of the SGML declaration. SGML-boot provides the capability to identify the character set of the document's SGML declaration when it uses significant SGML characters [ibid., 4.298] in the SGML reference concrete syntax [ibid., 13.4] that have a character number [ibid., 4.44] in the document's character set that differs from us-ascii. The default value is "0 128 0", all characters are us-ascii.