xml spy
Previous  Top  Next

Command Line Interface: StyleVisionBatch


StyleVision's file-generation functionality can be called via the StyleVisionBatch utility, which is included in your StyleVision installation. The utility is named StyleVisionBatch.exe and is located in the StyleVision application folder. The syntax for invoking StyleVision commands via StyleVisionBatch is explained in the StyleVisionBatch Syntax sub-section. When a command is executed StyleVision runs silently (i.e. without the GUI being opened), generates the required output files, and closes.

 

 

Output files

Using StyleVisionBatch, you can generate one or more of the following files:

 

XSLT-for-HTML (.xslt) file from the specified SPS
HTML (.html) file using the XML and XSLT files in the specified SPS or using alternative XML and/or XSLT files
XSLT-for-RTF (.xslt) file from the specified SPS
RTF file using the XML and XSLT-for-RTF files specified in the SPS or using alternative XML and/or XSLT-for-RTF files
XSLT-for-FO (.xslt) file from the specified SPS
FO file using the XML and XSLT-for-FO files specified in the SPS or using alternative XML and/or XSLT-for-FO files
PDF file using XML and XSLT-for-FO specified in the SPS or using alternative XML and/or XSLT-for-FO files
XSLT-for-Word 2007 (.xslt) file from the specified SPS
Word 2007 file using the XML and XSLT-for-Word 2007 files specified in the SPS or using alternative XML and/or XSLT-for-Word 2007 files
XML Schema file of a database-based SPS
XML data file of a database-based SPS

 

 

How to use the command line

There are two ways you can use the command line:

 

Commands can be entered singly on the command line and be executed immediately. For example, in a DOS window you can go to the directory in which the StyleVisionBatch utility is, then enter a command such as: StyleVisionBatch -v Test.sps -OutXSLT=Test.xslt., and press Enter to execute the command.
A series of commands can be entered in a batch file for batch processing. For example:

 

               @ECHO OFF

               CLS

               StyleVisionBatch -v Test.sps -inpXSLT=EN.xslt -OutHTML=TestEN.html

               StyleVisionBatch -v Test.sps -inpXSLT=DE.xslt -OutHTML=TestDE.html

               StyleVisionBatch -v Test.sps -inpXSLT=FR.xslt -OutHTML=TestFR.html

 

When the batch file is processed, the commands are executed and the files generated.

 

 

StyleVision functionality in scheduled tasks

Using the Scheduled Tasks tool of Windows, StyleVisionBatch commands can be set to execute according to a predefined schedule. Either a single command or a batch file can be specified as the task to be executed. How to create such StyleVisionBatch commands as a scheduled task is described in Scheduling StyleVisionBatch Tasks.

 

 


See also:

 

 


 

 


Previous  Top  Next

© 2008 Altova