Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Junos Script Automation: Named Templates in the jcs Namespace Overview
- Junos Script Automation: Global Parameters and Variables in the junos.xsl File
- Required Boilerplate for Event Scripts
- xsl:stylesheet
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- Required Boilerplate for Commit Scripts
- Required Boilerplate for Op Scripts
xsl:import
Syntax
<xsl:import href="../import/junos.xsl"/>
Description
Import rules from an external style sheet. Provides access to all the declarations and templates within the imported style sheet, and allows you to override them with your own if needed. Any <xsl:import> elements must be the first elements within the style sheet, the first children of the <xsl:stylesheet> document element. The path can be any URI. The ../import/junos.xsl path shown in the syntax is standard for all commit scripts, op scripts, and event scripts.
Imported rules are overwritten by any subsequent matching rules within the importing style sheet. If more than one style sheet is imported, the style sheets imported last override each previous import where the rules match.
Attributes
href | — | Specifies the location of the imported style sheet. |
Usage Examples
See Example: Adding a Final then accept Term to a Firewall, Example: Configuring a Default Encapsulation Type, Example: Configuring Dual Routing Engines, Example: Controlling IS-IS and MPLS Interfaces, Example: Prepending a Global Policy, and Example: Preventing Import of the Full Routing Table.
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Junos Script Automation: Named Templates in the jcs Namespace Overview
- Junos Script Automation: Global Parameters and Variables in the junos.xsl File
- Required Boilerplate for Event Scripts
- xsl:stylesheet
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- Required Boilerplate for Commit Scripts
- Required Boilerplate for Op Scripts
Published: 2013-03-05
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, SRX, T Series
- Junos Script Automation: Named Templates in the jcs Namespace Overview
- Junos Script Automation: Global Parameters and Variables in the junos.xsl File
- Required Boilerplate for Event Scripts
- xsl:stylesheet
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- Required Boilerplate for Commit Scripts
- Required Boilerplate for Op Scripts