To convert a SLAX script to XSLT, issue the request system scripts convert slax-to-xslt source /var/db/scripts/op/filename destination /var/db/scripts/ operational mode command:
- user@host> request system scripts convert
slax-to-xslt source source/filename destination destination
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
When you issue this command, the script1.slax file remains in the /var/db/scripts/op and a new script called script1.xsl is added to the /var/db/scripts/op directory.
To convert a script from XSLT to SLAX, see Manually Converting a Script from XSLT to SLAX.