net.sf.saxon.jdom
Class JDOMTransform
java.lang.Object
net.sf.saxon.Transform
net.sf.saxon.jdom.JDOMTransform
- public class JDOMTransform
- extends Transform
Variant of command line net.sf.saxon.Transform do build the source document
in JDOM and then proceed with the transformation. This class is provided largely for
testing purposes.
Method Summary |
static void |
main(String[] args)
Main program, can be used directly from the command line. |
List |
preprocess(List sources)
Preprocess the list of sources. |
Methods inherited from class net.sf.saxon.Transform |
badUsage, doTransform, execute, getConfiguration, loadDocuments, now, processDirectory, processDirectoryAssoc, processFile, processFileAssoc, quit, setFactoryConfiguration, setPOption |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOMTransform
public JDOMTransform()
preprocess
public List preprocess(List sources)
throws XPathException
- Description copied from class:
Transform
- Preprocess the list of sources. This method exists so that it can be
overridden in a subclass
- Overrides:
preprocess
in class Transform
- Throws:
XPathException
main
public static void main(String[] args)
- Description copied from class:
Transform
- Main program, can be used directly from the command line.
The format is:
java net.sf.saxon.Transform [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.