next up previous contents index
Next: 18. Document related commands Up: II. Widget Commands Previous: 16. Processing Instructions   Contents   Index

17. DTD related commands

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


17.1 Retrieving the DTD name

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.

17.2 Getting an identification

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:

For documents that contain the DTD in the document prolog, the second and third list elements will be empty.


next up previous contents index
Next: 18. Document related commands Up: II. Widget Commands Previous: 16. Processing Instructions   Contents   Index
TkSGML Reference Manual