This discussion explains how templates are put together, and describes the individual tags. The overall composition of a template is shown in Listing 14.8, which is pseudo-code, not pure XUL:
<top> <stuff/> <template> <rule> ... simple or extended rule info goes here ... </rule> ... zero or more further <rule> tags go here ... </template> <stuff/> </top>
The tag named <top> can be any ordinary XUL tag—<top> is not a special tag. Although the template proper starts with the <template> tag, some attributes specific to templates must also be added to the <top> tag. Other XUL content can precede, follow, or surround the <top> tag, whatever it is. Typical candidates ...