Converting an Op Script from SLAX to XSLT

To convert a SLAX script to XSLT, issue the request system scripts convert slax-to-xslt source source-directory/source-filename destination destination-directory/<destination-filename> operational mode command. The source script is the basis for a new script. The source script is not overwritten by the new script.

For example:


user@host> request system scripts convert slax-to-xslt source /var/db/scripts/op/script1.slax destination /var/db/scripts/op/script1.xsl

When you issue this command, the script1.slax file remains unchanged in the /var/db/scripts/op directory and a new script called script1.xsl is added to the /var/db/scripts/op directory. If you do not specify a filename for the destination file, the file is named SLAX-Conversion-Temp.xxxxx where xxxxx is a randomly generated series of characters.

To convert a script from XSLT to SLAX, see Converting an Op Script from XSLT to SLAX.