XML structures
Contextual formatting often involves selecting elements that occur in specific locations within a document's structure. It is therefore necessary to first understand what XML element structures are, and to appreciate the terminology commonly used to describe relationships between parts of an XML document. Note that not all of the concepts described in this section are relevant to contextual templates but are important for later discussions on locating elements for reuse.
An element may contain a number of embedded elements. These are termed child elements. These child elements share the same parent element. In the following example, the Title element and the Para element are both children of the Chapter element, and it follows ...
Get XSL companion, The 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.