Standard Generalized Markup Language
From Wikipedia, the free encyclopedia
Categories: Wikipedia articles needing context | ISO standards | Markup languages | Technical communication
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[1]). SGML provides an abstract syntax that can be written in many different concrete syntaxes. If one defines a concrete syntax in the SGML Declaration, one does not need to use "angle brackets" as tag delimiters, although they are the norm — part of the reference concrete syntax defined in the standard. GML used a colon to introduce a tag, a period to end it, and 'e' to indicate an end tag:
Original usesSGML was originally designed to enable the sharing of machine-readable documents in large projects in government, legal and 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 (OED), which was and is wholly marked up using an SGML-like markup. SyntaxSGML allows most aspects of a markup language's syntax to be customized. The default syntax appears similar to this example: <QUOTE TYPE="example"> typically something like <ITALICS>this</ITALICS> </QUOTE> HTML uses this SGML default syntax. Customization of the syntax for a markup language in SGML is specified by a Document Type Definition, or DTD. According to the reference syntax, letter case is not distinguished in tag names so the three tags Whether a tag must be paired like the above SGML markup languages whose concrete syntax enables the SHORTTAG VALUE feature, do not require attribute values containing only alphanumeric characters to be surrounded by quote marks <QUOTE TYPE=example> typically something like <ITALICS>this</ITALICS> </QUOTE> One feature of SGML markup languages is the NET (Null End Tag) construction: Additionally, the SHORTTAG NETENABL IMMEDNET feature allows to shorten tags that surround an empty text value: <QUOTE></QUOTE> can be written as <QUOTE// Where the first "/" stands for the NET-enabling start-tag close (NETSC) and the second one stands for the NET. (Note: XML defines NETSC as "/" and NET and ">" hence, in XML, this construct looks as <Quote/>). SGML is an ISO standard: "ISO 8879:1986 Information processing—Text and office systems—Standard Generalized Markup Language (SGML)" which was accepted in October of 1986. DerivativesHTMLHTML 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. The charter for the recently revived World Wide Web Consortium HTML Working Group goes so far as to say, "the Group will not assume that an SGML parser is used for 'classic HTML'".[2] XMLXML is an application of SGML, designed so as to make the parser much easier to implement, compared to a full SGML parser. A consequence of the ease of implementation is that XML, rather than SGML, is nowadays widely used for deriving document specifications. Contributing to this is also the fact that few SGML-aware programs existed when XML was created. The number of XML applications today is large. XML also has a lightweight internationalization. XML is used for general-purpose applications, such as the Semantic Web, XHTML, SVG, RSS, Atom, XML-RPC and SOAP. DocBookAnother 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. OtherThere 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. See also
References
External links
bg:SGML ca:Standard Generalized Markup Language cs:Standard Generalized Markup Language de:Standard Generalized Markup Language es:SGML eo:SGML fr:Standard Generalized Markup Language fy:SGML gl:SGML ko:SGML id:SGML it:Standard Generalized Markup Language lv:Valoda SGML lt:SGML hu:Standard Generalized Markup Language 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 uk:SGML | ||||||||||||||||||||



