O'Reilly logo

XML Pocket Consultant by William R. Stanek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. XML Attributes in DTDs

Like HTML elements, XML elements can have attributes. Because a document’s elements are completely configurable, you’re free to create as many attributes as necessary. However, all attributes used in a valid document must be declared in the document type definition (DTD). Otherwise the document can’t be said to be valid.

Defining Attributes in DTDs

The following sections examine the fundamental concepts you’ll need to define attributes in DTDs. You’ll learn how to

  • Make attribute assignments

  • Specify attribute names, types, and default usages

  • Assign values to attributes in DTDs

After these sections you’ll find a complete discussion on declaring the five standard types of attributes in DTDs.

Making Attribute Assignments ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required