12 #include "SaxonProcessor.h" 56 void setcwd(
const char* cwd);
126 void setProperty(
const char* name,
const char* value);
177 void transformFileToFile(
const char* sourcefile,
const char* stylesheetfile,
const char* outputfile);
328 jobject cppXT, stylesheetObject, xdmValuei;
330 std::string outputfile1;
333 std::map<std::string,XdmValue*> parameters;
334 std::map<std::string,std::string> properties;
SaxonProcessor * getSaxonProcessor()
Get the SaxonProcessor object.
Definition: XsltProcessor.h:50
int exceptionCount()
Get number of errors reported during execution or evaluate of stylesheet.
Definition: XsltProcessor.cpp:192
void compileFromString(const char *stylesheet)
compile a stylesheet received as a string.
Definition: XsltProcessor.cpp:269
void clearProperties()
Clear property values set.
Definition: XsltProcessor.cpp:153
void transformToFile()
Execute transformation to file. Properties supplied in advance.
Definition: XsltProcessor.cpp:700
XsltProcessor()
Default constructor.
Definition: XsltProcessor.cpp:15
void setSourceFromFile(const char *filename)
Definition: XsltProcessor.cpp:67
void compileFromFileAndSave(const char *xslFilename, const char *filename)
compile a stylesheet received as a file and save to an exported file (SEF).
Definition: XsltProcessor.cpp:247
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition: XsltProcessor.cpp:159
const char * getErrorMessage(int i)
Get the ith error message if there are any error.
Definition: XsltProcessor.cpp:708
const char * getProperty(const char *name)
Definition: XsltProcessor.cpp:119
Definition: XdmValue.h:46
void compileFromStringAndSave(const char *stylesheet, const char *filename)
compile a stylesheet received as a string and save to an exported file (SEF).
Definition: XsltProcessor.cpp:224
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition: XsltProcessor.cpp:164
void compileFromXdmNodeAndSave(XdmNode *node, const char *filename)
compile a stylesheet received as an XdmNode.
Definition: XsltProcessor.cpp:200
XdmValue * getXslMessages()
Definition: XsltProcessor.cpp:535
const char * checkException()
Check for exception thrown.
Definition: XsltProcessor.cpp:184
void compileFromXdmNode(XdmNode *node)
compile a stylesheet received as an XdmNode.
Definition: XsltProcessor.cpp:291
Definition: XsltProcessor.h:24
XdmValue * getParameter(const char *name)
Definition: XsltProcessor.cpp:85
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition: XsltProcessor.cpp:127
void transformFileToFile(const char *sourcefile, const char *stylesheetfile, const char *outputfile)
Perform a one shot transformation.
Definition: XsltProcessor.cpp:434
Definition: SaxonProcessor.h:296
void setJustInTimeCompilation(bool jit)
Definition: XsltProcessor.cpp:97
const char * getErrorCode(int i)
Get the ith error code if there are any error.
Definition: XsltProcessor.cpp:55
void exceptionClear()
Clear any exception thrown.
Definition: XsltProcessor.cpp:169
void setParameter(const char *name, XdmValue *value)
Definition: XsltProcessor.cpp:78
bool exceptionOccurred()
Definition: XsltProcessor.cpp:51
void setOutputFile(const char *outfile)
Definition: XsltProcessor.cpp:73
XdmValue * transformToValue()
Execute transformation to Xdm Value. Properties supplied in advance.
Definition: XsltProcessor.cpp:692
void compileFromFile(const char *stylesheet)
compile a stylesheet file.
Definition: XsltProcessor.cpp:314
void setSourceFromXdmNode(XdmNode *value)
Set the source document from an XdmNode for the transformation.
Definition: XsltProcessor.cpp:60
void setcwd(const char *cwd)
set the current working directory
Definition: XsltProcessor.cpp:178
XdmValue * transformFileToValue(const char *sourcefile, const char *stylesheetfile)
Definition: XsltProcessor.cpp:347
void releaseStylesheet()
Internal method to release cached stylesheet.
Definition: XsltProcessor.cpp:339
void setProperty(const char *name, const char *value)
Definition: XsltProcessor.cpp:113
const char * transformFileToString(const char *sourcefile, const char *stylesheetfile)
Perform a one shot transformation.
Definition: XsltProcessor.cpp:567
bool removeParameter(const char *name)
Definition: XsltProcessor.cpp:93
const char * transformToString()
Execute transformation to string. Properties supplied in advance.
Definition: XsltProcessor.cpp:683