Adding Attributes
The simplest way to add an attribute to a single element is
to add it to the attlist pattern for that element. Example 5-13 adds the optional attributes born
and died
to the attribute list for
author
. The db.author.attlist
pattern is redefined to interleave the two new optional attributes with
the existing attributes on the list.
Get DocBook 5: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.