Contained WithinFind More DocumentationFeatured Support Resources | Scarica il manuale in formato PDF (1975 KB)
sgml(5)Name | Description | SolBook Elements | Block Elements | Inline Elements | See Also Name
DescriptionStandard Generalized Markup Language (SGML) is the ISO standard 8879:1986 that describes a syntax for marking up documents with tags that describe the purpose of the text rather than the appearance on the page. This form of markup facilitates document interchange between different platforms and applications. SGML allows the management of information as data objects rather than text on a page. In an SGML document the main structural components are called elements. The organization and structure of a document and the meaning of elements are described in the Document Type Definition ( DTD ). Elements are the tags that identify the content. Element names may be descriptive of the content for ease of use. For example <para> for paragraphs. Elements can have attributes which are used to modify or refine the properties or characteristics of the element. Within the DTD a valid context for each element is defined and a framework is provided for the types of elements that constitute a compliant document. Another component of the DTD is entities. Entities are a collection of characters that can be referenced as a unit. Entities are similar to constants in a programming language such as C. They can be defined and referenced. An entity can represent one character or symbol which does not appear on a standard keyboard, a word or group of words, or an entire separate sgml marked-up file. Entities allow reuse of standard text. There is no single standard DTD , but the de facto standard for the computer industry is the DocBook DTD , developed and maintained by the Davenport Group. Within Sun, the SolBook DTD , which is a proper subset of DocBook DTD , is used when writing reference manual pages. The SolBook DTD contains a number of tags that are designed for the unique needs of the reference pages. SolBook Elements
Elements are defined with a hierarchical structure that gives a structure to the document. The following is a description of some of the elements from the SolBook DTD which are used for reference pages. DOCTYPEThe first line in an SGML file that identifies the location of the DTD that is used to define the document. The <!DOCTYPE string is what the SGML -aware man(1) command uses to identify that a file is formatted in SGML rather than nroff(1). RefEntryThe top layer element that contains a reference page is <refentry>. All of the text and other tags must be contained within this tag. RefMetaThe next tag in a reference page is <refmeta>, which is a container for several other tags. They are: RefNameDivThis tag contains the equivalent information to the .TH macro line in an nroff(1) reference page. <refnamediv> contains three tags. These tags contain the text that is before and after the `–' (dash) on the NAME line. RefSynopsisDivThe SYNOPSIS line of the reference page is contained by this tag. There is a <title> that usually contains an entity reference. The text is the word SYNOPSIS. There are several tags within <refsynopsisdiv> that are designed specifically for the type of synopsis that is used in the different reference page sections. The three types are: RefSect1This tag is equivalent to the .SH nroff macro. It contains a <title> element that is the title of the reference page section. Section names are the standard names such as DESCRIPTION, OPTIONS, PARAMETERS, SEE ALSO, and others. The contents of the <title> may be a text entity reference. RefSect2This tag is equivalent to the .SS nroff macro. It contains a <title> element that contains the text of the sub-section heading. <refsect2> tags may also be used within a <refsynopsisdiv> as a sub-section heading for the SYNOPSIS section. Block Elements
There are a number of block elements that are used for grouping text. This is a list of some of these elements. Inline Elements
The inline elements are used for tagging text. See AlsoSunOS 5.10 Last Revised 7 Jan 1997Name | Description | SolBook Elements | Block Elements | Inline Elements | See Also |