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

WYSIWYG XSLT Designer

Stylus Studio's powerful and easy-to-use WYSIWYG ("What you see is what you get") XSLT Designer lets you create XSLT stylesheets without writing any code! Go from a blank slate to solid, robust XSLT in minutes, using simple drag-and-drop operations.

Telecommunications Companies That Use Stylus Studio

Can you here me now? When it comes to telecommunications and XML it can get a little fuzzy. That's why these top telecommunication companies turn to Stylus Studio to connect them to their XML needs.

Electronics & Electrical Equipment

Many electronics and electrical equipment companies need the most powerful XML IDE to power up their companies. Come see which electronics & electrical equipment companies are wired up with Stylus Studio 2006.

Map between EDIFACT and X12

Anything can be mapped to anything: EDIFACT to X12 or vice-versa, either to XML, and any of those to flat files or other formats. Both the XSLT and XQuery mappers can help bridge complex formats with ease.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member