Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

xsl:stylesheet

date_range 13-Jan-21

Syntax

content_copy zoom_out_map
<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.

footer-navigation