Standard Generalized Markup Language
The Standard Generalized Markup Language (SGML; ISO 8879:1986) is a standard for defining generalized markup languages for documents.
≈ 4 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
The Standard Generalized Markup Language (SGML; ISO 8879:1986) is a standard for defining generalized markup languages for documents. ISO 8879 Annex A.1 states that generalized markup is "based on two postulates": * Declarative: Markup should describe a document's structure and other attributes rather than specify the processing that needs to be performed, because it is less likely to conflict with future developments. * Rigorous: In order to allow markup to take advantage of the techniques available for processing, markup should rigorously define objects like programs and databases.
DocBook SGML and LinuxDoc are examples which used SGML tools.
The Standard Generalized Markup Language (SGML; ISO 8879:1986) is a standard for defining generalized markup languages for documents. ISO 8879 Annex A.1 states that generalized markup is "based on two postulates": Declarative: Markup should describe a document's structure and other attributes rather than specify the processing that needs to be performed, because it is less likely to conflict with future developments.
Rigorous: In order to allow markup to take advantage of the techniques available for processing, markup should rigorously define objects like programs and databases. DocBook SGML and LinuxDoc are examples which used SGML tools. typically something like this SGML provides an abstract syntax that can be implemented in many different types of concrete syntax.
Although the markup norm is using angle brackets as start- and end-tag delimiters in an SGML document (per the standard-defined reference concrete syntax), it is possible to use other characters—provided a suitable concrete syntax is defined in the document's SGML declaration. For example, an SGML interpreter might be programmed to parse GML, wherein the tags are delimited with a left colon and a right full stop, and an :e prefix denotes an end tag: :xmp.Hello, world:exmp. .
According to the reference syntax, letter case (upper- or lower-case) is not distinguished in tag names, so the three tags , , and are equivalent. (A concrete syntax might change this rule via the NAMECASE NAMING declarations.) then this excerpt: Introduction to SGML The SGML Declaration ... which omits two tags and two tags, would represent valid markup.
Omitting tags is optional – the same excerpt could be tagged like this: Introduction to SGML The SGML Declaration ... and would still represent valid markup. Note: The OMITTAG feature is unrelated to the tagging of elements whose declared content is EMPTY as defined in the DTD: Elements defined like this have no end tag, and specifying one in the document instance would result in invalid markup.
This is syntactically different from XML empty elements in this regard. Tags can be replaced with delimiter strings, for a terser markup, via the SHORTREF feature. This markup style is now associated with wiki markup, e.g. wherein two equals-signs (
), at the start of a line, are the "heading start-tag", and two equals signs (
) after that are the "heading end-tag". typically something like this One feature of SGML markup languages is the "presumptuous empty tagging", such that the empty end tag in this "inherits" its value from the nearest previous full start tag, which, in this example, is (in other words, it closes the most recently opened item). The expression is thus equivalent to this . can be written as (angled bracket)—hence the corresponding construct in XML appears as .
The third feature is 'text on the same line', allowing a markup item to be ended with a line-end; especially useful for headings and such, requiring using either SHORTREF or DATATAG minimization. For example, if the DTD includes the following declarations: "> (and "&#RE;&#RS;" is a short-reference delimiter in the concrete syntax), then: first line second line is equivalent to: first line second line ISO 9069:1988 – Information processing – SGML support facilities – SGML Document Interchange Format (SDIF) ISO/IEC 9070:1991 – Information technology – SGML support facilities – Registration procedures for public text owner identifiers
Text derived from https://en.wikipedia.org/w/index.php?oldid=1371618940 under CC BY-SA 4.0; modifications have been made.