dtinfoStyle.dtd(file formats)

NAME
dtinfoStyle.dtd — dtinfo style sheet document type definition

DESCRIPTION

dtinfoStyle.dtd describes the SGML features available for specifying how a document should be rendered. Style sheets associate the elements in a given document hierarchy with on-line or print formatting characteristics, and are part of the DtInfo Toolkit.

With dtinfo, you use a single style sheet to specify both print and online rendering of the elements in your DTD. The print and online feature sets match in function, description, and specification, with just four exceptions for print-specific features

  Basic Style Sheet Format

The basic style sheet format first defines autonumbers. Then, for each element (Path) the style sheet defines its feature set. For information see, "Understanding Dtinfo Style Sheets" and "Creating a Style Sheet" in CDE: Information Manager Author's and Programmer's Guide.

You can also find an ASCII file of the dtinfoStyle.dtd in /usr/pkg/dt/infolib/%L/SGML/dtinfoStyle.dtd.

  AutoNumber

To use system-generated number tokens in element formatting, first create an AutoNumber specification for each token stream. (Note that these tokens can only be used with the Prefix, Suffix, Header and Footer features.)

A simple example is:

&<AutoNumber
        id=chapnum
        reset="Book Part"
        counter=chapter>

A more complex example is:

&<AutoNumber
        id=fignum
        type=UCroman
        initial="I"
        delta=l
        counter="FIG TABLE"
        reset=chap>
&<path>NUMITEM&</>
        &<margin top=4pt bottom=4pt>
        &<prefix>&<auto id=NumList>&</prefix>

where:

type
    The kind of counter values:Arabic, UCalpha, LCalpha, UCroman, LCroman. The default value is Arabic.

id  The unique name of this token. You can refer to this name, for example, in a Prefix. Required.

initial
    The initial value for this token, which must be consistent with the Type. The default is 1.

delta
    The value by which the system increments or decrements the token. The default is to increment by 1.

counter
    The element(s) that cause this token to use the Delta to change values. Required.

reset
    The element(s) that cause this token to reset to its initial value. Required.

SEE ALSO

CDE: Information Manager Author's and Programmer's Guide, dtinfo(1), dtdocbook2infolib(1), dtinfoBook.dtd - dtinfoBookdtd(5), dtinfoTOC.dtd - dtinfoTOCdtd(5)