XML technologies / XML / XML in a Nutshell / XML as a document format / The legacy of SGML

(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)

XML is a simplified form of the Standard Generalized Markup Language (SGML). The language now known as SGML was invented in the 1970s by Charles F. Goldfarb, Ed Mosher, and Ray Lorie at IBM, and developed further by many people worldwide until its adoption in 1989 as ISO standard 8879. SGML aimed to solve many of the same problems as XML. It was and remains a semantic and structural markup language for text documents. SGML is extremely powerful and has achieved considerable success in the U.S. military and government, aerospace, and other fields needing effective management of technical documents tens of thousands of pages long.

SGML’s greatest success was HTML, which was and remains simply an SGML application. It comes nowhere near SGML’s own power. Many other document formats have been defined with SGML, including DocBook and TEI, which we will discuss shortly.

However, SGML is complicated —very, very complicated. The official SGML specification runs to more than 150 highly technical pages, covering many special cases and unlikely scenarios. SGML is so complex that almost no software has ever implemented it completely. Programs implementing or using different subsets of SGML are often incompatible. Features one program considers essential are too often considered unnecessary and omitted by another. Nevertheless, experience with SGML has taught developers much about designing, implementing, and using markup languages for many kinds of documents. Much of that knowledge also applies to XML.

It should now be clear that XML documents are not used only on the Web. XML can meet the publishing needs of many media, including books, magazines, journals, newspapers, and leaflets. It is particularly useful when the same information must be published in several of these formats. Applying different stylesheets to the same source document lets you produce web pages, handouts, print-ready copy, and much more.

  

 

 

 

back to top