Creating the Module Using a DTD

The DTD implementation of a module actually consists of two smaller module parts referred to as sub-modules: a QName module and a Declaration module. We'll take a look at both in this section.

Working with QNames

QNames is an XML term for qualified names. Qualified names are constructed when XML Namespaces are used to differentiate elements from more than one markup language. For instance, XHTML has a title element that's used to give a title to the document. Some other language might use a title element to refer to a person's rank or other salutary title such as Doctor, Reverend, or even Her Royal Highness.

XML Namespaces identify which language a given element belongs to through the use of a prefix appended ...

Get XHTML by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.