com.icl.saxon
public class StyleSheet extends Object
The XSLT syntax supported conforms to the W3C XSLT 1.0 and XPath 1.0 recommendation. Only the transformation language is implemented (not the formatting objects). Saxon extensions are documented in the file extensions.html
Field Summary | |
---|---|
protected TransformerFactoryImpl | factory |
protected NamePool | namePool |
int | repeat |
boolean | showTime |
Method Summary | |
---|---|
protected void | badUsage(String name, String message) |
protected void | doMain(String[] args, StyleSheet app, String name)
Support method for main program. |
static void | main(String[] args)
Main program, can be used directly from the command line.
|
static TraceListener | makeTraceListener(String className) |
static URIResolver | makeURIResolver(String className) |
void | processDirectory(File sourceDir, Templates sheet, File outputDir, ParameterSet params)
Process each file in the source directory using the same supplied stylesheet |
void | processDirectoryAssoc(File sourceDir, File outputDir, ParameterSet params)
Process each file in the source directory using its own associated stylesheet |
void | processFile(Source source, Templates sheet, File outputFile, ParameterSet params)
Process a single file using a supplied stylesheet |
void | processFileAssoc(Source sourceInput, String localName, File outputFile, ParameterSet params)
Process a single source file using its associated stylesheet(s) |
protected static void | quit(String message, int code)
Exit with a message |
Parameters: args the command-line arguments app instance of the StyleSheet class (or a subclass) to be invoked name name of the class, to be used in error messages
The format is:
java com.icl.saxon.StyleSheet [options] source-file style-file >output-file
followed by any number of parameters in the form {keyword=value}... which can be referenced from within the stylesheet.
This program applies the XSL style sheet in style-file to the source XML document in source-file.