7.2. Template Rule Processing and Priorities

In this section, we will review the concepts of processing template rules and the procedures for resolving conflicts.

Almost every one of the priorities for resolving conflicts discussed in the following sections fall along the general lines that imported elements always have the lowest priority. Any processing or template priority resolution, however, is contingent upon the concept of the current template rule.

7.2.1. The Current Template Rule

The current template rule is always that rule which is being instantiated at any given point in the processing of an XSLT stylesheet. A given template rule becomes the current template rule once its match pattern has been successfully matched in the input XML ...

Get XSLT and XPATH: A Guide to XML Transformations 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.