Applying a Stylesheet from the Command Line

You use the StylusXslt utility to apply a stylesheet from the command line. The StylusXslt utility uses the XSLT and XPath processors specified in Stylus Studio.

One way you might want to use the StylusXslt command-line utility is to chain stylesheets. That is, you can create a batch file in which Stylus Studio consecutively applies multiple stylesheets to the same XML source document. Stylus Studio creates temporary files to specify the result of one transformation as the source for the next transformation.

The StylusXslt utility takes the following format:

StylusXslt [-out <output file>] [-param name=value] [-fop] [-print] -in <input XML file> <XSLT stylesheet>

Table 9 describes the parameters for the StylusXql command.

Parameter
Description
[-out <output file>]
File to which the XSLT result will be written. The default is stdout.
[-param name=value]
The name-value pair of a parameter in the stylesheet specified in the stylesheet parameter.
[-fop]
Invokes the Apache Formatting Objects Processor (FOP) to post-process the XSLT result.
[-print]
Sends the result of the transformation to the default printer.
[-in <input file> ]
The path of the XML document to which you want to apply the stylesheet specified in the XSLT stylesheet parameter.
<XSLT stylesheet>
The path of the XSLT you want to apply to the document specified in the
-in parameter.
Table 9. StylusXslt Command Line Parameters

XSL:FO Editor

The XSL-FO editor provides syntax help, code completion integrated PDF preview, and integration with industry-leading XSL-FO processors including RenderX XEP and Apache FOP. Simplify XSL FO development with Stylus Studio.

Scientific, Photo & Control Equipment

Scientific, photo & control equipment companies hear clicks and beeps all day. But, when it comes to data integration it needs to be done in a flash, that's why they use Stylus Studio. Come see which top companies are seeing XML in a brand new light!

Publishing & Printing

It is really hard to get things to look pretty, especially XML. That's why these publishing & printing companies use Stylus Studio to make a Mona Lisa out of data integration. Check out these top companies that are "stunning" with Stylus Studio!

DataDirect XML Converters Video Demonstration

DataDirect XML Converters are Java and .NET components that enable access to any data (flat files, EDI) from your application code. Learn how to deploy XML applications today.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member