Home >Online Product Documentation >Table of Contents >Configuring a Custom Validation Engine
This section provides information and procedures for configuring a custom validation engine. It covers the following topics:
You use the Custom Validation Engines page of the Options dialog box to work with custom validation engines in Stylus Studio.
The Options dialog box appears.
The Custom Validation Engines page appears.
Stylus Studio provides macros for some fields to help speed creation of custom validation engines. Any macro you use to configure the custom validation engine is resolved when it is run.
Available macros vary based on the field for which they are being used. To display macros available for a given field, click . Predefined macros include
${FilePath}
${FileDir}
${FileName}
${FileExt}
${ClassPath}
Classpath
${StylusDir}
When you click the New button ( )to create a new custom validation engine, Stylus Studio displays an entry field for the name.
You should replace the default name (Validation Engine 1, for example) with the name you want to associate with the custom validation engine. The name you enter is displayed in the drop-down in the XML Editor.
Custom validation engines are displayed in the Validate Document drop-down list in the order in which they appear here.
You use the Command field to specify the command line used to invoke the custom validation engine. This is typically the path to the .exe, .cmd, or .bat file that starts the application.
.exe
.cmd
.bat
You use the Arguments field to specify any arguments required by the custom validation engine. Click to browse predefined macros.
You use the Initial directory field to specify the directory you want Stylus Studio to use as the current directory when the custom validation engine is run. Click to browse predefined macros.
You use the Path field to define paths to any files (such as .exe and .dll) required by the custom validation engine. You do not have to define any paths that are already defined in your PATH environment variable. Separate multiple paths with a semicolon. Click to browse predefined macros.
.dll
PATH
You use the Classpath field to define paths to any JVM files required by the custom validation engine (such as .jar and .class). You do not have to define any paths that are already defined in your PATH environment variable. Click to browse predefined macros.
.jar
.class
The Prompt for arguments feature displays a dialog box when the custom validation engine is run.
The Arguments field allows the user to change the command line and arguments configured with the custom validation engine when it was registered with Stylus Studio.
Before performing this procedure, you should be familiar with the information in The Custom Validation Engines Page.