Francais | English | Espanõl

Standard Generalized Markup Language

From Wikipedia, the free encyclopedia

(Redirected from SGML)
Jump to: navigation, search
Standard Generalized Markup Language <tr><td colspan="2" style="text-align: center; border: 0px solid #aaaaaa">Image:OED-LEXX-Bungler.jpg
A fragment of the OED (1985), showing SGML markup<tr><th style="white-space: nowrap;">File extension:</th><td>none</td></tr><tr><th style="white-space: nowrap;">MIME type:</th><td>text/sgml</td></tr><tr><th style="white-space: wrap;">Uniform Type Identifier:</th><td>public.xml</td></tr><tr><th style="white-space: nowrap;">Type of format:</th><td>metalanguage</td></tr><tr><th style="white-space: nowrap;">Extended from:</th><td>GML</td></tr><tr><th style="white-space: nowrap;">Extended to:</th><td>HTML, XML</td></tr><tr><th style="white-space: nowrap;">Standard(s):</th><td>ISO 8879</td></tr>

The Standard Generalized Markup Language (SGML) is a metalanguage in which one can define markup languages for documents. SGML is a descendant of IBM's Generalized Markup Language (GML), developed in the 1960s by Charles Goldfarb, Edward Mosher and Raymond Lorie (whose surname initials were used by Goldfarb to make up the term GML). SGML and GML should not be confused with the Geography Markup Language developed by the Open GIS Consortium or the Game Maker scripting language.

SGML provides a variety of markup syntaxes that can be used for many applications. By changing the SGML Declaration one does not even need to use "angle brackets" although they are the norm, the so-called concrete reference syntax.

Contents

[edit] Original uses

SGML was originally designed to enable the sharing of machine-readable documents in large projects in government, legal and the aerospace industry, which have to remain readable for several decades—a very long time in information technology. It has also been used extensively in the printing and publishing industries, but its complexity has prevented its widespread application for small-scale general-purpose use. Primarily intended for text and database publishing, one of its first major applications was the second edition of the Oxford English Dictionary, which was and is wholly marked up in SGML.

[edit] Syntax

SGML syntax example:

<QUOTE TYPE="example"> 
  typically something like <ITALICS>this</ITALICS> 
</QUOTE>

SGML is an ISO standard: "ISO 8879:1986 Information processing—Text and office systems—Standard Generalized Markup Language (SGML)".

[edit] Derivatives

[edit] HTML

HTML was originally designed based on SGML tagging but without SGML's emphasis on rigorous markup. It was later reformulated (at version 2.0) to be an application of SGML, although there's some debate on whether it ever actually became one.

[edit] XML

XML is derived from SGML and covers a broad spread of applications. XML is a profile—a specific subset of SGML, designed to be simpler to parse and process than full SGML, and to have more lightweight internationalization. XML is a simplification of SGML for general-purpose applications, such as the Semantic Web. XML has been used for a large number of applications, including notably XHTML, RSS, Atom, XML-RPC and SOAP.

[edit] Docbook

Another markup language originally created as an application of SGML is DocBook, designed for authoring technical documentation. DocBook is now also available as an XML application.

[edit] Other

There are also a number of languages that are related in part to SGML and XML, but, because they cannot be parsed or validated or otherwise processed using standard SGML and XML tools, cannot be considered to be applications of SGML or XML. One example is the Z Format, a language designed for typesetting and documentation.

[edit] See also

[edit] External links

ca:Standard Generalized Markup Language cs:Standard Generalized Markup Language de:SGML es:SGML eo:SGML fr:SGML fy:SGML gl:SGML ko:SGML it:SGML lv:Valoda SGML lt:SGML nl:Standard Generalized Markup Language ja:Standard Generalized Markup Language no:SGML nn:SGML pl:Standard Generalized Markup Language pt:SGML ru:SGML sk:Standard Generalized Markup Language fi:SGML sv:SGML zh:SGML

Personal tools