Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find good documentation on how to write XML DTDs?

Tags:

xml

dtd

The description of DTDs in the XML 1.1 specification is very terse, and it is difficult to gain an appreciation of what features are available. For example, from looking at the unflattened XHTML+MathML+SVG DTD, I know it is possible to import and partially redefine external DTDs, but I would never have guessed that was possible from reading the spec.

Does anyone know of a good resource for learning the finer points of DTD writing?

like image 394
Daniel Cassidy Avatar asked Nov 17 '08 15:11

Daniel Cassidy


People also ask

Are DTDs that are contained within an XML document?

A DTD defines the valid building blocks of an XML document. It defines the document structure with a list of validated elements and attributes. A DTD can be declared inline inside an XML document, or as an external reference. XML uses a subset of SGML DTD.

What is DTD document type definitions in XML illustrate with suitable example?

A DTD can be declared inside an XML document as inline or as an external recommendation. DTD determines how many times a node should appear, and how their child nodes are ordered. There are 2 data types, PCDATA and CDATA. PCDATA is parsed character data. CDATA is character data, not usually parsed.


2 Answers

May be too basic for your needs, but W3 schools often has good primers?

like image 179
toolkit Avatar answered Oct 18 '22 02:10

toolkit


I would recommend Elliotte-Rusty Harold's book "XML Bible".

This is not "documentation", document type definitions (DTDs) are one of the most complex parts of XML and deserve to be learnt from the best sources.

One can also learn from examining good existing DTDs. Look for example at the following DTD, required to be used for the Balisage Conference slideshow presentations.

like image 44
Dimitre Novatchev Avatar answered Oct 18 '22 03:10

Dimitre Novatchev