![]() |
![]()
| ![]() |
![]()
NAMEdtdocbook — DocBook to SDL translator SYNOPSISdtdocbook [-c] [-d] [-h] [-m] [-o file] [-r] [-s dir] [-u] [-v] [-x] [file] DESCRIPTIONThe dtdocbook command converts documents that conform to the DocBook 2.2.1 DTD (Document Type Definition) subelement PART to documents that conform to the SDL 1.2 DTD. The reason for translating DocBook documents to SDL is to make them readable by the the DtHelp viewer. The CDE documentation authoring environment produces documents that conform to the DocBook DTD Version 2.2.1. The CDE online documentation browser (dtinfo) accepts only documents in the DocBook DTD 2.2.1 format. The CDE online help viewer (DtHelp) accepts only documents in the SDL DTD Version 1.2 format. Both DocBook and SDL are implementations of the SGML standard, ISO 8879:1986. dtdocbook translates document from one format to the other, making them suitable for use with the help viewer. During translation, several items are precomputed to accelerate run-time display of the resulting SDL document. These items include: the table of contents, the keyword index, cross-reference resolution, and the labeling of ordered lists. By default, dtdocbook also compresses the SDL document. dtdocbook requires only the filename of the input file. Note that the input file can be either a DocBook document or an SDL document, depending on the operation you want dtdocbook to perform. If the file name ends in the characters .sgm or .sdl, dtdocbook assumes they are the file name extension removes them to create the base name for all intermediate files and for the final output file. If the file name does not end in the characters .sgm or .sdl, dtdocbook uses the file name as given for the base name. If you request either compression or decompression (-c or -d option) of an existing SDL file, the input file name extension will be .sdl. If you specify neither -c nor -d, the input file name extension must be .sgm. The output file name extension will always be .sdl unless you specify the -o option, in which case dtdocbook will use the output filename that you specify. If you specify the -c option and the file is already compressed, dtdocbook will decompress and recompress the file. This is a convenient way to verify the integrity of a compressed SDL file. If you specify the -c option and the file is already decompressed, dtdocbook will re-parse the file, repeat all precomputations, and update the existing file. This is a convenient way to verify the integrity of an SDL file. It also allows you to force a recomputation of the table of contents to reflect edits made to the SDL file. You must recompute the table of contents because it consists of byte offsets to the individual help topics in the file. OPTIONSThe following options are available:
OPERANDSThe following operand is supported:
EXIT STATUS
ENVIRONMENT VARIABLESdtdocbook references the LANG variable to determine the language used for the input file's contents. LANG can be overridden by the LANG attribute of the DocBook PART element. RESOURCESNone. ACTIONS/MESSAGESNone. ERRORS/WARNINGSTO BE SUPPLIED FILESEXAMPLES
SEE ALSOTO BE SUPPLIED
|