org.odftoolkit.odfxsltrunner
public class ODFXSLTRunner extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INPUT_MODE_FILE
Input file is a plain XML file.
|
static int |
INPUT_MODE_PACKAGE
Input file is an ODF package.
|
static int |
OUTPUT_MODE_COPY_INPUT_PACKAGE
The input package is copied and the result of the transformation
is stored in the specified path within the copied package.
|
static int |
OUTPUT_MODE_FILE
Output file is a plain XML or text file.
|
static int |
OUTPUT_MODE_REPLACE_INPUT_PACKAGE
The transformation replaces the specified path within
the input file.
|
static int |
OUTPUT_MODE_STDOUT
Output is stdout.
|
static int |
OUTPUT_MODE_TEMPLATE_PACKAGE
The result of the transformation is stored in the specified path within
the output package.
|
Constructor and Description |
---|
ODFXSLTRunner()
Create new instance of ODFXSLTRunner.
|
Modifier and Type | Method and Description |
---|---|
boolean |
runXSLT(File aStyleSheetFile,
List<XSLTParameter> aParams,
File aInputFile,
int aInputMode,
File aOutputFile,
int aOutputMode,
String aPathInPackage,
String aTransformerFactoryClassName,
List<String> aExtractFileNames,
Logger aLogger)
Apply a style sheeet.
|
boolean |
runXSLT(String aStyleSheet,
List<XSLTParameter> aParams,
String aInputFile,
int aInputMode,
String aOutputFile,
int aOutputMode,
String aPathInPackage,
String aTransformerFactoryClassName,
List<String> aExtractFileNames,
Logger aLogger)
Apply a style sheeet.
|
public static final int INPUT_MODE_FILE
public static final int INPUT_MODE_PACKAGE
public static final int OUTPUT_MODE_FILE
public static final int OUTPUT_MODE_STDOUT
public static final int OUTPUT_MODE_REPLACE_INPUT_PACKAGE
public static final int OUTPUT_MODE_COPY_INPUT_PACKAGE
public static final int OUTPUT_MODE_TEMPLATE_PACKAGE
public boolean runXSLT(String aStyleSheet, List<XSLTParameter> aParams, String aInputFile, int aInputMode, String aOutputFile, int aOutputMode, String aPathInPackage, String aTransformerFactoryClassName, List<String> aExtractFileNames, Logger aLogger)
aStyleSheet
- Path of the style sheetaParams
- Parameters that are passed to the XSLT processoraInputFile
- Path of the input fileaInputMode
- Input modeaOutputFile
- Path of the output fileaOutputMode
- Output modeaTransformerFactoryClassName
- XSLT transformer factory to useaExtractFileNames
- A list of files or directory that shell be extracted from the packageaPathInPackage
- Path within the package. Default is "content.xml"aLogger
- Logger objectpublic boolean runXSLT(File aStyleSheetFile, List<XSLTParameter> aParams, File aInputFile, int aInputMode, File aOutputFile, int aOutputMode, String aPathInPackage, String aTransformerFactoryClassName, List<String> aExtractFileNames, Logger aLogger)
aStyleSheetFile
- Style sheetaParams
- Parameters that are passed to the XSLT processoraInputFile
- Input fileaInputMode
- Input modeaOutputFile
- Output fileaOutputMode
- Output modeaPathInPackage
- Path within the package. Default is "content.xml"aTransformerFactoryClassName
- XSLT transformer factory to useaExtractFileNames
- A list of files or directory that shell be extracted from the packageaLogger
- Logger objectCopyright © 2014 The Apache Software Foundation. All Rights Reserved.