How to Use an External Processor

You specify XSLT processors on an individual stylesheet basis. When you use an external XSLT processor, output from the processor appears in the Preview window.

To use an external XSLT processor:
1. Open the stylesheet for which you want to use the external processor.
2. In the XSLT editor, in the scenario name field, click the down arrow to display the scenarios associated with the stylesheet.
3. To use an external processor for an existing scenario, click the scenario name, and then click to display the Scenario Properties dialog box.

To create a new scenario, click Create Scenario. See Creating a Scenario.

4. In the Scenario Properties dialog box that appears, click the Processor tab.
5. Click the radio button associated with the XSLT processor you want to use. Note that they are grouped based on whether or not they support Stylus Studio XSLT debugging and backmapping.

Note

 

Stylus Studio allow you to choose an MSXML option only if you have the MSXML or MSXML .NET processor installed.

6. If you selected a standard XSLT processor, you are done. Click OK.

If you selected Use custom processor (%1 xml, %2 xslt, %3 output):

a. In the Command line field, type the command line for invoking the processor you want to run. You must specify the command line so that it is clear where to use the three arguments. Following are two examples:
myparser %1 %2 %3
       
myparser -inputxslt %2 -inputxml %1 -out %3
       

    
b. In the Path field, specify any path that needs to be defined for the processor to run. Typically, this is the location of the processor.
c. In the Classpath field, type any directories the external processor needs to access that are not already specified in your CLASSPATH environment variable.
d. Click OK.

Passing Parameters

To pass parameters to the Stylus Studio built-in XSLT processor or to the Xalan-J, MSXML .NET, Saxon, or MSXML processor, specify them in the Parameters tab of the Scenario Properties dialog box. To pass parameters to a custom external processor, you must specify them in the command line you enter.

 
Free Stylus Studio XML Training: