12 #include "SaxonProcessor.h" 53 void setcwd(
const char* cwd);
154 void setProperty(
const char* name,
const char* value);
220 XdmValue ** createXdmValueArray(
int len){
224 void deleteXdmValueArray(
XdmValue ** arr,
int len){
225 for(
int i =0; i< len; i++) {
246 void transformFileToFile(
const char* sourcefile,
const char* stylesheetfile,
const char* outputfile);
441 void addPackages(
const char ** fileNames,
int length);
443 void clearPackages();
527 jobject cppXT, stylesheetObject, xdmValuei, selection;
530 std::string outputfile1;
534 std::map<std::string,XdmValue*> parameters;
536 std::map<std::string,std::string> properties;
void setProperty(const char *name, const char *value)
Definition: Xslt30Processor.cpp:169
void compileFromXdmNode(XdmNode *node)
compile a stylesheet received as an XdmNode.
Definition: Xslt30Processor.cpp:358
void setResultAsRawValue(bool option)
Definition: Xslt30Processor.cpp:163
XdmValue * callTemplateReturningValue(const char *stylesheetFilename, const char *templateName)
Invoke a transformation by calling a named template and return result as a string.
Definition: Xslt30Processor.cpp:1024
void setInitialTemplateParameters(std::map< std::string, XdmValue *> parameters, bool tunnel)
Definition: Xslt30Processor.cpp:120
const char * applyTemplatesReturningString(const char *stylesheetFilename=NULL)
Invoke the stylesheet by applying templates to a supplied input sequence, Saving the results as seria...
Definition: Xslt30Processor.cpp:509
bool exceptionOccurred()
Definition: Xslt30Processor.cpp:64
void compileFromAssociatedFile(const char *sourceFile)
Get the stylesheet associated.
Definition: Xslt30Processor.cpp:386
void callFunctionReturningFile(const char *stylesheetFilename, const char *functionName, XdmValue **arguments, int argument_length, const char *outfile)
Call a public user-defined function in the stylesheet.
Definition: Xslt30Processor.cpp:648
void releaseStylesheet()
Internal method to release cached stylesheet.
Definition: Xslt30Processor.cpp:455
void transformFileToFile(const char *sourcefile, const char *stylesheetfile, const char *outputfile)
Perform a one shot transformation.
Definition: Xslt30Processor.cpp:1194
void transformToFile(XdmNode *source)
Execute transformation to file. Properties supplied in advance.
Definition: Xslt30Processor.cpp:1410
XdmValue * applyTemplatesReturningValue(const char *stylesheetFilename=NULL)
Invoke the stylesheet by applying templates to a supplied input sequence, Saving the results as an Xd...
Definition: Xslt30Processor.cpp:565
void setJustInTimeCompilation(bool jit)
Definition: Xslt30Processor.cpp:147
XdmValue * getXslMessages()
Definition: Xslt30Processor.cpp:1239
void compileFromFile(const char *stylesheet)
compile a stylesheet file.
Definition: Xslt30Processor.cpp:421
XdmValue * callFunctionReturningValue(const char *stylesheetFilename, const char *functionName, XdmValue **arguments, int argument_length)
Call a public user-defined function in the stylesheet.
Definition: Xslt30Processor.cpp:756
void clearParameters(bool deleteValues=false)
Clear parameter values set.
Definition: Xslt30Processor.cpp:183
Definition: Xslt30Processor.h:24
void setInitialMatchSelectionAsFile(const char *filename)
The initial filename to which templates are to be applied (equivalent to the select attribute of xsl:...
Definition: Xslt30Processor.cpp:97
SaxonProcessor * getSaxonProcessor()
Get the SaxonProcessor object.
Definition: Xslt30Processor.h:47
XdmValue * transformFileToValue(const char *sourcefile, const char *stylesheetfile)
Definition: Xslt30Processor.cpp:1108
void clearProperties()
Clear property values set.
Definition: Xslt30Processor.cpp:214
const char * getErrorMessage(int i)
Get the ith error message if there are any error.
Definition: Xslt30Processor.cpp:1422
Definition: XdmValue.h:46
const char * transformFileToString(const char *sourcefile, const char *stylesheetfile)
Perform a one shot transformation.
Definition: Xslt30Processor.cpp:1271
void setGlobalContextItem(XdmItem *value)
Set the source document from an XdmNode for the transformation.
Definition: Xslt30Processor.cpp:75
Xslt30Processor()
Default constructor.
Definition: Xslt30Processor.cpp:13
void setInitialMatchSelection(XdmValue *selection)
The initial value to which templates are to be applied (equivalent to the select attribute of xsl:app...
Definition: Xslt30Processor.cpp:88
void compileFromStringAndSave(const char *stylesheet, const char *filename)
compile a stylesheet received as a string and save to an exported file (SEF).
Definition: Xslt30Processor.cpp:286
const char * checkException()
Check for exception thrown.
Definition: Xslt30Processor.cpp:246
Definition: SaxonProcessor.h:296
const char * callFunctionReturningString(const char *stylesheetFilename, const char *functionName, XdmValue **arguments, int argument_length)
Call a public user-defined function in the stylesheet.
Definition: Xslt30Processor.cpp:703
const char * getProperty(const char *name)
Definition: Xslt30Processor.cpp:175
XdmValue * getParameter(const char *name)
Definition: Xslt30Processor.cpp:130
XdmValue * transformToValue(XdmNode *source)
Execute transformation to Xdm Value. Properties supplied in advance.
Definition: Xslt30Processor.cpp:1398
void applyTemplatesReturningFile(const char *stylesheetFilename, const char *outfile)
Invoke the stylesheet by applying templates to a supplied input sequence, Saving the results to file...
Definition: Xslt30Processor.cpp:461
std::map< std::string, XdmValue * > & getParameters()
Get all parameters as a std::map.
Definition: Xslt30Processor.cpp:221
void callTemplateReturningFile(const char *stylesheetFilename, const char *templateName, const char *outfile)
Invoke a transformation by calling a named template and save result to file.
Definition: Xslt30Processor.cpp:918
bool removeParameter(const char *name)
Definition: Xslt30Processor.cpp:143
std::map< std::string, std::string > & getProperties()
Get all properties as a std::map.
Definition: Xslt30Processor.cpp:226
const char * transformToString(XdmNode *source)
Execute transformation to string. Properties supplied in advance.
Definition: Xslt30Processor.cpp:1385
const char * getErrorCode(int i)
Get the ith error code if there are any error.
Definition: Xslt30Processor.cpp:68
void setcwd(const char *cwd)
set the current working directory
Definition: Xslt30Processor.cpp:240
int exceptionCount()
Get number of errors reported during execution or evaluate of stylesheet.
Definition: Xslt30Processor.cpp:254
void setGlobalContextFromFile(const char *filename)
Definition: Xslt30Processor.cpp:82
void exceptionClear()
Clear any exception thrown.
Definition: Xslt30Processor.cpp:231
void setParameter(const char *name, XdmValue *value, bool _static=false)
Definition: Xslt30Processor.cpp:108
void compileFromFileAndSave(const char *xslFilename, const char *filename)
compile a stylesheet received as a file and save to an exported file (SEF).
Definition: Xslt30Processor.cpp:309
void compileFromString(const char *stylesheet)
compile a stylesheet received as a string.
Definition: Xslt30Processor.cpp:331
void setOutputFile(const char *outfile)
Definition: Xslt30Processor.cpp:103
const char * callTemplateReturningString(const char *stylesheetFilename, const char *templateName)
Invoke a transformation by calling a named template and return result as a string.
Definition: Xslt30Processor.cpp:971
void addPackages(const char **fileNames, int length)
File names to XsltPackages stored on filestore are added to a set of packages.
Definition: Xslt30Processor.cpp:839
void compileFromXdmNodeAndSave(XdmNode *node, const char *filename)
compile a stylesheet received as an XdmNode.
Definition: Xslt30Processor.cpp:262