Examples from Chapter 10 of The XML Bible, Attribute Declarations in DTDs
Listing 10-1: A required ID attribute type
Listing 10-2: IDREF attributes
Listing 10-3: Java source code with significant whitespace encoded in XML
Listing 10-4: a complete attribute based XML document with two leagues, six divisions, six teams, and two players
Listing 10-5: The complete DTD for baseball statistics that uses attributes for most of the information
Copyright 1999
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified at April 2, 1999