Junos Extension Functions and Templates in the jcs Namespace

When you write scripts, you can use Extensible Stylesheet Language Transformations (XSLT) or Stylesheet Language Alternative Syntax (SLAX) tools provided by the Junos OS. These tools include extension functions that accomplish scripting tasks more easily, and the import file called junos.xsl, which includes named templates that make scripts easier to read and write. The extension functions and templates use the jcs: prefix to avoid conflicts with standard XSLT functions and user-defined templates. This chapter discusses the extension functions and templates in detail in the following sections: