The import file junos.xsl contains several useful templates that you can call within a commit script. To use these templates, you must map to the jcs namespace in your style sheet declaration. You must also import the junos.xsl file. Both of these steps are shown below:
<?xml version=”1.0”?>
<xsl:stylesheet verion=”1.0” mlns:jcs="http://xml.juniper.net/junos/commit-scripts/1.0">
<xsl:import href="../import/junos.xsl"/>
...
</xsl: stylesheet>
Both the namespace mapping and the <xsl:import> element are contained in the basic script boilerplate presented in Boilerplate for Commit Scripts.
For more information, see the following sections: