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 [-fop] [-print] source stylesheet [result] [param=value]...
               

            

Table 6 describes the parameters for the StylusXql command.

Parameter
Description
[-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.
source
The path of the XML document to which you want to apply the stylesheet specified in the stylesheet parameter.
stylesheet
The path of the XSLT you want to apply to the document specified in the source parameter.
[result]
File to which you want the XSLT result to be written. The default is stdout.
[param=value]
The name-value pair of a parameter in the stylesheet specified in the stylesheet parameter.
Table 6. StylusXslt Command Line Parameters

Why XQuery - The Case for XQuery

Read "The Case for XQuery" - an article that debuted in the November 2005 issue of SOA WebServices Journal, written by Jerry King, Vice President of DataDirect Technologies.

Using DTD in Java Applications

Learn how to validate XML documents using industry-standard DTD's from within your Java applications using Java DTD components including Apache Xerces and XSV.

Translating XML documents to X12

In-place, via XSLT and via XQuery are all mechanisms supported for converting XML to X12

Electronic Data Interchange (EDI) Blog

The EDI-L Blog is the best technical forum for discussing topics related to Electronic Data Interchange (EDI), including EDIFACT, and X12 Technologies. Topics include EDI Software, EDI Standards, EDI applications, EDI examples, and more.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member