|        | |||||
|  | |||||
| built-in variable | current dtd | ||||
Purpose
Used to select the current DTD. This can only be used when there clearly is a currently active DTD in a markup processor rule other than document-start or document-end, or in the body of a do sgml-parse or do xml-parse.
The current DTD does not necessarily have to be an item on the sgml-dtds or xml-dtds shelf, as it can be established by:
do sgml-parse document
do sgml-parse subdocument
do sgml-parse instance
do xml-parse document
do xml-parse instance
This example shows how you can select the current DTD using current dtd:
  element #implied when attribute source is specified
     ; attribute "source" is a #conref attribute
     do sgml-parse instance with document-element "%q"
     ; reparse current element
        with current dtd
        scan file "%ev(source)"
     output "%c"
     done
| ---- |