Automation
Showing results for 
Search instead for 
Do you mean 

Which scripting language to use: SLAX or XSLT?

by Administrator Administrator on ‎02-22-2016 06:46 AM - edited on ‎08-23-2017 12:36 PM by Administrator Administrator

Question

Which scripting language should you use for writing Junos automation scripts: SLAX or XSLT?  

Answer

You could use both. However, the SLAX syntax is signficantly easier to develop scripts with. When Junos processes SLAX, it converts it first to XSLT. It is possible, and sometimes necessary, to embed native XSLT into SLAX. For example, if one needed to create a function (not a template) for your automation, you would currently need to use the <func:function> XSLT construct.

Improvements and advances in the SLAX syntax are in progress.