264 11 The XML Transformation Language
Figure 11.2 Abstract depiction of the process of digestion. The original chain is
shown in A. An enzyme (dark gray region) attacks the chain (B, C, D) in two locations,
splitting the chain each time. A second enzyme (light gray region) attacks two of the
subchains (E, F, G). The end result is five subchains (H).
Summary
- An XSLT program consists of templates.
- A template either matches a specific kind of element or attribute or it uses
a wild card to match many kinds of elements and attributes. - A template performs an action on the matching elements and attributes.