xmlvalidationdtdsgml

Is there a DTD for the DTD?


I am writing a DTD and I think it would be nice to know, if it is valid. For that, I need the DTD (description) of the DTD (document type).

Does it exist?


Solution

  • I need the DTD (description) of the DTD (document type).

    No, a DTD for DTDs does not exist. DTDs are designed to describe XML, and DTDs are not XML. You may be thinking of an XSD for XSD, which is viable because XSDs are XML.

    I want [a] formal description.

    A formal description of DTD in EBNF notation is included in the formal specification of XML.