O'Reilly logo

Enterprise Application Integration With XML and Java™ by Bill la Forge, JP Morgenthal

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

6.4. Extending the DTD

The DTD syntax is very efficient in expressing a certain set of constraints on conforming documents. However, it knows nothing about concepts such as key relationships. We'll extend the DTD to capture such additional information for the element types and attributes that we define in our schema. We'll use fixed attributes to accomplish this because the value of fixed attributes is unchangeable in individual elements, so they can be thought of as properties of the element type itself rather than of an instance. So:

  1. For element types, we associate the property by adding a fixed nmtoken attribute whose name is preceded by an e-. The value of this attribute is the value of the property. For example, to associate 'red' as the ...

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