Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Example z/OS ISPF Dialog Tag Language Guide and Reference SC19-3620-00 |
|
This example uses both entities and parameter entities. It embeds the file GLBENT with global entity declarations, and a file with tags and text. It also uses entities and parameter entities that refer to text strings. The first entity declaration declares the "glbent" parameter entity as an external file. The file name is defaulted to GLBENT. A parameter entity is used because this file contains entity declarations. Because entity declarations can only be made in the declaration subset, the GLBENT file is embedded with an entity reference within the declaration subset. The entity declarations in GLBENT are for text that is used at the top and bottom of the panel. The "header" entity declaration refers to an external file, and the "footer" is a text string. Both of these entities are referred to in the source file. The second entity declaration, for “list”, is also a parameter entity. This declaration refers to a string, not an external file. The text is the SL tag name, which is referred to in the next two entity declarations. These two declarations, "slist" and “elist”, are used as the SL start and end tags. They are defined as entities so the type of list can be changed in one place. To change the list type from a simple list (SL) to an unordered list (UL), change the parameter entity "list" from SL to UL. This is the content of the source file:
This is the content of the embedded file GLBENT:
This is the content of the embedded file CONAME:
Figure 1 shows the formatted result: Figure 1. Entities and parameter entities
|
Copyright IBM Corporation 1990, 2014
|