BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help

Standard Generalized Markup Language

Print-Friendly
About 3 pages (996 words)
Standard Generalized Markup Language Summary

Bookmark and Share Questions on this topic? Just ask!
Standard Generalized Markup Language
File extension: none
MIME type: application/sgml, text/sgml
Uniform Type Identifier: public.xml
Type of format: metalanguage
Extended from: GML
Extended to: HTML, XML
Standard(s): ISO 8879

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 realized 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: :xmp.thus:exmp., and SGML is flexible enough to accept that grammar, too.

Contents

Original uses

SGML 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.

A fragment of the OED (1985), showing SGML markup
A fragment of the OED (1985), showing SGML markup

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.

Syntax

SGML 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 <quote>, <QUOTE>, and <quOtE> are equivalent (a concrete syntax may change this rule through the NAMECASE NAMING declarations). Whether a tag must be paired like the above <QUOTE></QUOTE> pair or occurring singly like an HTML <HR> is defined in the DTD for the markup language being defined (as long as the OMITTAG feature is enabled). In this case the XML counterpart would be the specific empty tag <hr/>, which is equivalent to the SGML NET-enabling start-tag, introduced in the TC2 (International Standard ISO 8879:1986, Technical Corrigendum 2, Nov. 1999). 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 " (LIT) or ' (LITA), so that the above markup could be written:

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

One feature of SGML markup languages is the NET (Null End Tag) construction: <ITALICS/this/ which is structurally equivalent to <ITALICS>this</ITALICS>. Another is the "presumptuous empty tagging", such that the empty tag </> in <ITALICS>this</> "inherits" its value from the nearest previous nonempty tag, which of course is <ITALICS> (in other words, it closes the most recently opened item). The expression is thus another, more concise, equivalent to <ITALICS>this</ITALICS>. A third is the 'text on the same line' feature, which allows an item to be ended by a line-end (especially useful for headings and the like). 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.

Derivatives

HTML

Main article: 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. 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]

XML

Main article: XML

XML is a simplified rework of SGML, which is designed so as to make the XML parser much easier to implement, compared to an SGML parser. One consequence is that an XML parser is much less forgiving of erroneous XML markup. A consequence of the ease of implementation is that XML has replaced SGML virtually completely. Contributing to this is the fact that few SGML-aware programs existed when XML was created. The number of XML applications today is large. XML also has more lightweight internationalization. XML is used for general-purpose applications, such as the Semantic Web, XHTML, SVG, RSS, Atom, XML-RPC and SOAP.

DocBook

Main article: 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.

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.

See also

References

  1. ^ Charles F. Goldfarb (1996). The Roots of SGML - A Personal Recollection. Retrieved on 2007-07-07.
  2. ^ HTML Working Group Charter. Retrieved on 2007-04-19.

External links

View More Summaries on Standard Generalized Markup Language
More Information
  • View Standard Generalized Markup Language Study Pack
  • Search Results for "Standard Generalized Markup Language"
  • Add This to Your Bibliography
  • More Products on This Subject
    Sgml
    Markup language for organizing and tagging elements of a document, including headings, paragraphs, tables, and graphics. The elements are marked according to their meaning and relationship to other elements rather than to the format of their presentation... more

    Sgml (Standard Generalized Markup Language)
    SGML is an acronym for Standard Generalized Markup Language. This language was developed and organized by the International Organization for Standards in 1986 as a means for organizing and identifying elements of a document that are destined to be format... more


     
    Ask any question on Standard Generalized Markup Language and get it answered FAST!
    Answer questions in BookRags Q&A and earn points toward
    discounted or even FREE Study Guides and other BookRags products!
    Learn more about BookRags Q&A
    Copyrights
    Standard Generalized Markup Language from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

    Article Navigation
    Join BookRagslearn moreJoin BookRags




    About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy