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