• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Creating XML Document Type D... > Saving Yourself Typing with Paramete...

Saving Yourself Typing with Parameter Entities

You will learn a lot more about entities in the next chapter. For the moment, we are concerned with one particular type of entity called the parameter entity, which can be extremely useful in XML DTDs. Parameter entities are basically like the character entities you learned about earlier. They, too, behave like macros and can be used as abbreviations for strings. However, where character entities serve as abbreviations for character strings, parameter entities serve as shortcuts for markup declarations and parts of declarations. Obviously, because they are concerned with markup declarations, they can be used only in DTDs. In fact, their use is a little more restrictive than this:

  • In the internal DTD subset, parameter entities can be used only between other markup declarations.

  • In the external DTD subset, parameter entities can be used both between and inside other markup declarations.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint