Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

xsl:import

 

Syntax

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

hrefSpecifies 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.