Package net.sf.saxon
Class Compile
java.lang.Object
net.sf.saxon.Compile
This Compile class provides a command-line interface allowing a
stylesheet to be compiled.
- Author:
- M.H.Kay
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Output error message when incorrect command line options/arguments are usedprotected void
Support method for main program.static void
Main program, can be used directly from the command line.protected static void
Exit with a message
-
Constructor Details
-
Compile
public Compile()
-
-
Method Details
-
main
Main program, can be used directly from the command line.The format is:
java net.sf.saxon.Compile [options] style-file output-file
This program compiles the XSL style sheet in style-file to the output-file.
- Parameters:
args
- Arguments supplied on the command line- Throws:
Exception
- Any compilation error occurs
-
doMain
Support method for main program. This support method can also be invoked from subclasses that support the same command line interface- Parameters:
args
- the command-line arguments
-
quit
Exit with a message- Parameters:
message
- Message to be outputcode
- Result code to be returned to the operating system
-
badUsage
Output error message when incorrect command line options/arguments are used- Parameters:
message
- Error message to be displayed
-