XSLT priority
1. In a single XSLT file:
Specified by the priority attribute of <XSL: Template> (the larger the number, the higher the priority)
If the priority attribute is not specified, the priority is determined based on the order of appearance (the higher the appearance, the higher the priority)
2. <XSL: Include>
<XSL: Include> the imported XSLT is equivalent to a part of the host XSLT file. The priority is calculated based on "1. Single XSLT File.
Note the location and priority attributes.
3. <XSL: Import>
The imported XSLT has a lower priority than the host XSLT, and the more advanced the XSLT is.
The priority attribute is "valid" only within each XSLT (that is, it is impossible to set the priority method to make the imported template have a higher priority than the template for the imported host XSLT. But it can be implemented through the mode attribute)
For example, if a imports B c, B imports D, and C imports E, the priority is (from high to low): a c e B D.
4. <XSL: Include> and <XSL: Import> Hybrid
Think about the previous rules.
Technorati: XML, XSL, XSLT, priority, learning notes