Next: 18. Document related commands
Up: II. Widget Commands
Previous: 16. Processing Instructions
  Contents
  Index
Access to the DTD is limited to retrieving the name of the
current DTD and to create an identification for the current DTD.
DTD commands
| dtd name |
| |
Returns the name of the current DTD |
| dtd ident |
| |
Returns an identification for the current DTD |
The name of the current DTD can be retrieved with the dtd name
command.
pathname dtd name
The command returns the name of the current DTD as a
string. If no document has been loaded into the sgml widget, the
dtd name command generates an error.
It is convenient for some purposes to create a more specific
identification of a DTD. One such case is a situation where different
version of a DTD are used in parallel, for example when a production
and a development version of a DTD co-exist. The dtd ident
command can be used to extract an identification of the current DTD
from the sgml widget. It has the following general form:
pathname dtd ident
The dtd ident command returns a list with three elements:
- The name of the current DTD as returned by the dtd name
command.
- The public identifier for the current DTD if one has been
specified.
- The system identifier for the current DTD. This is the effective
external system identifier that has been created by resolving the
public identifier (if one has been supplied) or by feeding the
supplied system identifier to the catalog manager for possible system
identifier remapping.
For documents that contain the DTD in the document prolog, the second
and third list elements will be empty.
Next: 18. Document related commands
Up: II. Widget Commands
Previous: 16. Processing Instructions
  Contents
  Index
TkSGML Reference Manual