|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.icl.saxon.StyleSheet
This StyleSheet class is the entry point to the Saxon XSLT Processor. This class is provided to control the processor from the command line.
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
|
Constructor Summary | |
StyleSheet()
|
Method Summary | |
protected void |
badUsage(java.lang.String name,
java.lang.String message)
|
protected void |
doMain(java.lang.String[] args,
StyleSheet app,
java.lang.String name)
Support method for main program. |
static void |
main(java.lang.String[] args)
Main program, can be used directly from the command line. |
static TraceListener |
makeTraceListener(java.lang.String className)
|
static URIResolver |
makeURIResolver(java.lang.String className)
|
void |
processDirectory(java.io.File sourceDir,
Templates sheet,
java.io.File outputDir,
ParameterSet params)
Process each file in the source directory using the same supplied stylesheet |
void |
processDirectoryAssoc(java.io.File sourceDir,
java.io.File outputDir,
ParameterSet params)
Process each file in the source directory using its own associated stylesheet |
void |
processFile(Source source,
Templates sheet,
java.io.File outputFile,
ParameterSet params)
Process a single file using a supplied stylesheet |
void |
processFileAssoc(Source sourceInput,
java.lang.String localName,
java.io.File outputFile,
ParameterSet params)
Process a single source file using its associated stylesheet(s) |
protected static void |
quit(java.lang.String message,
int code)
Exit with a message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TransformerFactoryImpl factory
protected NamePool namePool
Constructor Detail |
public StyleSheet()
Method Detail |
public static void main(java.lang.String[] args) throws java.lang.Exception
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.
java.lang.Exception
protected void doMain(java.lang.String[] args, StyleSheet app, java.lang.String name)
args
- the command-line argumentsapp
- instance of the StyleSheet class (or a subclass) to be invokedname
- name of the class, to be used in error messagesprotected static void quit(java.lang.String message, int code)
public void processDirectoryAssoc(java.io.File sourceDir, java.io.File outputDir, ParameterSet params) throws java.lang.Exception
java.lang.Exception
public void processFileAssoc(Source sourceInput, java.lang.String localName, java.io.File outputFile, ParameterSet params) throws TransformerException
TransformerException
public void processDirectory(java.io.File sourceDir, Templates sheet, java.io.File outputDir, ParameterSet params) throws TransformerException
TransformerException
public void processFile(Source source, Templates sheet, java.io.File outputFile, ParameterSet params) throws TransformerException
TransformerException
protected void badUsage(java.lang.String name, java.lang.String message)
public static URIResolver makeURIResolver(java.lang.String className) throws TransformerException
TransformerException
public static TraceListener makeTraceListener(java.lang.String className) throws TransformerException
TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |