| United States-English |
|
|
|
![]() |
Common Desktop Environment: Help System Author's and Programmer's Guide > Chapter 2 Organizing
and Writing a Help VolumeUsing Entities |
|
An entity can represent a string of characters or the contents of a file. An entity declaration defines the entity by associating the entity name with a specific character string or file name. An entity reference is replaced by the string or file contents when you process the help volume with the dtdocbook command. Entities are useful for:
File entities are also useful for splitting your DocBook source into multiple files. Use entity references to include other files into your master DocBook file for processing.
The following line declares a text entity named Assoc that contains the string "Society of Agricultural Engineers":
The following sentence includes a reference to the entity:
When the help volume is processed with the DocBook software, the entity reference is replaced with the value of the entity. So, the sentence will read: Welcome to the Society of Agricultural Engineers.
Suppose you wrote the text for your help volume in three files named file1, file2, and file3, plus a fourth file containing your <docinfo> ... </docinfo> section. You could include them in your volume.sgm file like this:
Suppose a simple help volume has a Part with a Graphic in it, and graphic data for the Graphic is stored in a file named picture.tif. The following example shows how that Graphic would be included by using an entity reference.
The text "A Picture" is the figure's caption. The markup produces this output: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||