1 | Create a DTD file for an address book named "ab.dtd" |
2 | <!ELEMENT addressBook (person)+> |
3 | <!ELEMENT person (name, email*, link?) > |
4 | <!ATTLIST person id ID #REQUIRED > |
5 | <!ATTLIST person gender (male|female)#IMPLIED > |
6 | <!ELEMENT name (#PCDATA|(family,given))> |
7 | <!ELEMENT family (#PCDATA)> |
8 | <!ELEMENT given (#PCDATA)> |
9 | <!ELEMENT email (#PCDATA)> |
10 | <!ELEMENT link EMPTY > <!ATTLIST link manager IDREF #IMPLIED subordinates IDREFS #IMPLIED > |