- Patterns that match a class of nodes, such as *, which matches all elements, are assigned an implicit priority of -0.5
- Patterns that match nodes according to their name, such as Character, which matches
elements are assigned an implicit priority of 0.
- Patterns that matches nodes according to their context, such as CastMember/Charcter are assgined an implicit priority of 0.5
When assigning priorities based on patterns, it doesn't matter how specific the ontext information is. If you specify any context for a node, then the template has priority of 0.5. For example, Description/Link/Character has exactly the same priority as Description//Character. Technically, it's an error if you have two templates that mache the same node and the match patterns for the two templates have the same node and the matche patterns for the two templates have the same specificity. However, most processors recover from the error, which means they use the last template that you've defined in the stylesheet. You should try to avoid having templates that have the same priority and can feasibly match the same node; use the priority attribute to assign them specific, different priorities.