Witten
Bainbridge
Nichols
HOME HELP PREFERENCES SEARCHFIGURESTABLES

Sample DTD using a parameterized entity

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE NGODoc [
<!ENTITY % sharedattrib
  " style NMTOKEN #IMPLIED
   ident ID #IMPLIED ">
<!ELEMENT NGODoc (Title,Body)>
<!ELEMENT Body   (Name|Abbrev)+>
<!ELEMENT Title  (#PCDATA)>
<!ELEMENT Name   (#PCDATA)>
<!ELEMENT Abbrev (#PCDATA)>
<!ATTLIST Title  %sharedattrib;>
<!ATTLIST Abbrev %sharedattrib;>
<!ATTLIST Name   %sharedattrib;
          HQ CDATA #IMPLIED>
]>

Figure 4.8: Sample DTD using a parameterized entity;