12 #include "SaxonProcessor.h"
50 void setcwd(
const char* cwd);
101 void setProperty(
const char* name,
const char* value);
152 void transformFileToFile(
const char* sourcefile,
const char* stylesheetfile,
const char* outputfile);
303 jobject cppXT, stylesheetObject, xdmValuei;
305 std::string outputfile1;
308 std::map<std::string,XdmValue*> parameters;
309 std::map<std::string,std::string> properties;
SaxonProcessor * getSaxonProcessor()
Get the SaxonProcessor object.
Definition: XsltProcessor.h:297
int exceptionCount()
Get number of errors reported during execution or evaluate of stylesheet.
Definition: XsltProcessor.cpp:177
void compileFromString(const char *stylesheet)
compile a stylesheet received as a string.
Definition: XsltProcessor.cpp:231
void setSourceFromXdmValue(XdmItem *value)
Set the source document from a XdmValue for the transformation.
Definition: XsltProcessor.cpp:63
void clearProperties()
Clear property values set.
Definition: XsltProcessor.cpp:140
void transformToFile()
Execute transformation to file. Properties supplied in advance.
Definition: XsltProcessor.cpp:671
XsltProcessor()
Default constructor.
Definition: XsltProcessor.cpp:15
void setSourceFromFile(const char *filename)
Definition: XsltProcessor.cpp:70
void compileFromFileAndSave(const char *xslFilename, const char *filename)
compile a stylesheet received as a fileand save to SEF file.
Definition: XsltProcessor.cpp:209
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition: XsltProcessor.cpp:146
const char * getErrorMessage(int i)
Get the ith error message if there are any error.
Definition: XsltProcessor.cpp:679
const char * getProperty(const char *name)
Definition: XsltProcessor.cpp:106
Definition: XdmValue.h:44
void compileFromStringAndSave(const char *stylesheet, const char *filename)
compile a stylesheet received as a string and save to SEF file.
Definition: XsltProcessor.cpp:186
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition: XsltProcessor.cpp:151
XdmValue * getXslMessages()
Definition: XsltProcessor.cpp:500
const char * checkException()
Check for exception thrown.
Definition: XsltProcessor.cpp:169
void compileFromXdmNode(XdmNode *node)
compile a stylesheet received as an XdmNode.
Definition: XsltProcessor.cpp:253
Definition: XsltProcessor.h:24
XdmValue * getParameter(const char *name)
Definition: XsltProcessor.cpp:88
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition: XsltProcessor.cpp:114
void transformFileToFile(const char *sourcefile, const char *stylesheetfile, const char *outputfile)
Perform a one shot transformation.
Definition: XsltProcessor.cpp:394
Definition: SaxonProcessor.h:290
const char * getErrorCode(int i)
Get the ith error code if there are any error.
Definition: XsltProcessor.cpp:58
void exceptionClear()
Clear any exception thrown.
Definition: XsltProcessor.cpp:156
void setParameter(const char *name, XdmValue *value)
Definition: XsltProcessor.cpp:81
bool exceptionOccurred()
Definition: XsltProcessor.cpp:54
void setOutputFile(const char *outfile)
Definition: XsltProcessor.cpp:76
XdmValue * transformToValue()
Execute transformation to Xdm Value. Properties supplied in advance.
Definition: XsltProcessor.cpp:663
void compileFromFile(const char *stylesheet)
compile a stylesheet file.
Definition: XsltProcessor.cpp:276
void setcwd(const char *cwd)
set the current working directory
Definition: XsltProcessor.cpp:165
XdmValue * transformFileToValue(const char *sourcefile, const char *stylesheetfile)
Definition: XsltProcessor.cpp:309
void releaseStylesheet()
Internal method to release cached stylesheet.
Definition: XsltProcessor.cpp:301
void setProperty(const char *name, const char *value)
Definition: XsltProcessor.cpp:100
const char * transformFileToString(const char *sourcefile, const char *stylesheetfile)
Perform a one shot transformation.
Definition: XsltProcessor.cpp:532
bool removeParameter(const char *name)
Definition: XsltProcessor.cpp:96
const char * transformToString()
Execute transformation to string. Properties supplied in advance.
Definition: XsltProcessor.cpp:654