Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- Required Boilerplate for Commit Scripts
- Required Boilerplate for Op Scripts
- ACX, EX, M, MX, PTX, SRX, T Series
- Required Boilerplate for Event Scripts
- xsl:import
- ACX, EX, M, MX, SRX, T Series
- XSLT Namespace
xsl:stylesheet
Syntax
<xsl:stylesheet version="1.0" xmlns:ext="URI">
<xsl:import href="../import/junos.xsl"/>
...
</xsl:stylesheet>
Description
Include the document element for the style sheet. This element defines the root element of the style sheet, which contains all the top-level elements such as global variable and parameter declarations, import elements, and templates. Optionally, namespace mappings, which include an extension prefix and Uniform Resource Identifier (URI), can be included as attributes in the opening <xsl:stylesheet> tag.
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 Uniform Resource Identifier (URI). The ../import/junos.xsl path shown in the syntax is standard for all commit scripts, op scripts, and event scripts.
Attributes
version | — | Specifies the version of XSLT that is being used. Junos OS supports XSLT version 1.0. |
xmlns:ext="URI | — | (Optional) Maps a namespace prefix to the URI for extension elements. |
Usage Examples
- Example: Adding a Final then accept Term to a Firewall
- Example: Configuring Administrative Groups for LSPs
- Example: Configuring a Default Encapsulation Type
- Example: Customizing Output of the show interfaces terse Command Using an Op Script
Related Documentation
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- Required Boilerplate for Commit Scripts
- Required Boilerplate for Op Scripts
- ACX, EX, M, MX, PTX, SRX, T Series
- Required Boilerplate for Event Scripts
- xsl:import
- ACX, EX, M, MX, SRX, T Series
- XSLT Namespace
Published: 2013-07-26
Supported Platforms
Related Documentation
- ACX, EX, M, MX, PTX, QFX, SRX, T Series
- Required Boilerplate for Commit Scripts
- Required Boilerplate for Op Scripts
- ACX, EX, M, MX, PTX, SRX, T Series
- Required Boilerplate for Event Scripts
- xsl:import
- ACX, EX, M, MX, SRX, T Series
- XSLT Namespace