XSL Study Notes: XSLT priority

Source: Internet
Author: User
Tags xsl xslt

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.